Skip to content

Commit 3d73ec8

Browse files
authored
add images to build runtime on FreeBSD (#277)
1 parent 2f94b23 commit 3d73ec8

File tree

9 files changed

+53
-2
lines changed

9 files changed

+53
-2
lines changed

manifest.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,30 @@
426426
}
427427
]
428428
},
429+
{
430+
"platforms": [
431+
{
432+
"dockerfile": "src/ubuntu/18.04/cross/freebsd/11",
433+
"os": "linux",
434+
"osVersion": "freebsd.11",
435+
"tags": {
436+
"ubuntu-18.04-cross-freebsd-11-$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {}
437+
}
438+
}
439+
]
440+
},
441+
{
442+
"platforms": [
443+
{
444+
"dockerfile": "src/ubuntu/18.04/cross/freebsd/12",
445+
"os": "linux",
446+
"osVersion": "freebsd.12",
447+
"tags": {
448+
"ubuntu-18.04-cross-freebsd-12-$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {}
449+
}
450+
}
451+
]
452+
},
429453
{
430454
"platforms": [
431455
{
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-coredeps
2+
3+
RUN apt -y autoremove
4+
5+
ADD rootfs.x64.tar crossrootfs
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
rm -rf $PWD/rootfs*.tar
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
$(dirname ${BASH_SOURCE[0]})/../../../../../build-scripts/build-rootfs.sh ubuntu-18.04 freebsd11 x64
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-coredeps
2+
3+
RUN apt -y autoremove
4+
5+
ADD rootfs.x64.tar crossrootfs
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
rm -rf $PWD/rootfs*.tar
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
$(dirname ${BASH_SOURCE[0]})/../../../../../build-scripts/build-rootfs.sh ubuntu-18.04 freebsd12 x64

src/ubuntu/18.04/crossdeps/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ RUN apt-get update \
2121
make \
2222
qemu \
2323
qemu-user-static \
24+
libbz2-dev \
25+
libz-dev \
26+
liblzma-dev \
27+
libarchive-dev \
28+
libbsd-dev \
2429
&& rm -rf /var/lib/apt/lists/*
2530

2631
RUN apt-get update \
@@ -31,4 +36,4 @@ RUN apt-get update \
3136
llvm-9 \
3237
python-lldb-6.0 \
3338
&& rm -rf /var/lib/apt/lists/*
34-
39+

src/ubuntu/build-scripts/build-rootfs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ do
3232

3333
echo "Using $dockerCrossDepsTag to clone arcade to fetch scripts used to build cross-toolset"
3434
docker exec $buildRootFSContainer \
35-
git clone https://github.com/dotnet/arcade /scripts
35+
git clone --depth 1 https://github.com/dotnet/arcade /scripts
3636

3737
if [ $? -ne 0 ]; then
3838
echo "Rootfs build failed: `git clone https://github.com/dotnet/arcade /scripts` returned error"

0 commit comments

Comments
 (0)