File tree 6 files changed +18
-0
lines changed
6 files changed +18
-0
lines changed Original file line number Diff line number Diff line change
1
+ #
2
+ # Copyright (c) 2018 Intel Corporation
3
+ #
4
+ # SPDX-License-Identifier: Apache-2.0
5
+
1
6
From fedora:latest
2
7
8
+ RUN [ -n "$http_proxy" ] && sed -i '$ a proxy=' $http_proxy /etc/dnf/dnf.conf ; true
9
+
3
10
RUN dnf install -y qemu-img parted gdisk e2fsprogs
Original file line number Diff line number Diff line change 5
5
6
6
From centos:@OS_VERSION@
7
7
8
+ @SET_PROXY@
9
+
8
10
RUN yum -y update && yum install -y git make gcc coreutils
9
11
10
12
# This will install the proper golang to build Kata components
Original file line number Diff line number Diff line change 5
5
6
6
From fedora:27
7
7
8
+ @SET_PROXY@
9
+
8
10
RUN dnf -y update && dnf install -y git systemd pkgconfig gcc coreutils
9
11
10
12
# This will install the proper golang to build Kata components
Original file line number Diff line number Diff line change 5
5
6
6
FROM euleros:@OS_VERSION@
7
7
8
+ @SET_PROXY@
9
+
8
10
RUN yum -y update && yum install -y yum git make gcc coreutils
9
11
10
12
# This will install the proper golang to build Kata components
Original file line number Diff line number Diff line change 5
5
6
6
From fedora:@OS_VERSION@
7
7
8
+ @SET_PROXY@
9
+
8
10
RUN dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils
9
11
10
12
# This will install the proper golang to build Kata components
Original file line number Diff line number Diff line change @@ -100,6 +100,8 @@ generate_dockerfile()
100
100
;;
101
101
esac
102
102
103
+ [ -n " $http_proxy " ] && readonly set_proxy=" RUN sed -i '$ a proxy=" $http_proxy " ' /etc/dnf/dnf.conf /etc/yum.conf; true"
104
+
103
105
readonly install_go="
104
106
ADD https://storage.googleapis.com/golang/go${GO_VERSION} .linux-${goarch} .tar.gz /tmp
105
107
RUN tar -C /usr/ -xzf /tmp/go${GO_VERSION} .linux-${goarch} .tar.gz
@@ -115,6 +117,7 @@ ENV PATH=\$PATH:\$GOROOT/bin:\$GOPATH/bin
115
117
-e " s|@GO_VERSION@|${GO_VERSION} |g" \
116
118
-e " s|@OS_VERSION@|${OS_VERSION} |g" \
117
119
-e " s|@INSTALL_GO@|${install_go// $' \n ' / \\ n} |g" \
120
+ -e " s|@SET_PROXY@|${set_proxy} |g" \
118
121
${dockerfile_template} > Dockerfile
119
122
popd
120
123
}
You can’t perform that action at this time.
0 commit comments