Skip to content

Commit

Permalink
Add an Ubuntu 18.04 s390x (IBM Z System) crossrootfs builder (#351)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Köplinger <[email protected]>
  • Loading branch information
directhex and akoeplinger authored Oct 28, 2020
1 parent a0359ae commit d6e0352
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
12 changes: 12 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,18 @@
}
]
},
{
"platforms": [
{
"dockerfile": "src/ubuntu/18.04/cross/s390x",
"os": "linux",
"osVersion": "bionic",
"tags": {
"ubuntu-18.04-cross-s390x-$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {}
}
}
]
},
{
"platforms": [
{
Expand Down
9 changes: 9 additions & 0 deletions src/ubuntu/18.04/cross/s390x/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-crossdeps

# Install binutils-s390x-linux-gnu
RUN apt-get update \
&& apt-get install -y \
binutils-s390x-linux-gnu \
&& rm -rf /var/lib/apt/lists/*

ADD rootfs.s390x.tar crossrootfs
3 changes: 3 additions & 0 deletions src/ubuntu/18.04/cross/s390x/hooks/post-build
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

rm -rf $PWD/rootfs*.tar
5 changes: 5 additions & 0 deletions src/ubuntu/18.04/cross/s390x/hooks/pre-build
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh

SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
$SCRIPTPATH/../../../../build-scripts/build-rootfs.sh ubuntu-18.04 bionic s390x nolldb

0 comments on commit d6e0352

Please sign in to comment.