Change-Id: Icb5f7e21fc69025a4de2baef1d3d28c5f8feb17d
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4089
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
Tested-by: Anish Swaminathan <anishs@vmware.com>
... | ... |
@@ -1,4 +1,4 @@ |
1 |
-FROM vmware/photon:2.0 |
|
1 |
+FROM k8s-base-image:2.0 |
|
2 | 2 |
|
3 | 3 |
# This script may automatically configure wavefront without prompting, based on |
4 | 4 |
# these variables: |
... | ... |
@@ -8,8 +8,8 @@ FROM vmware/photon:2.0 |
8 | 8 |
# WAVEFRONT_HOSTNAME (default is the docker containers hostname) |
9 | 9 |
# WAVEFRONT_USE_GRAPHITE (default is false) |
10 | 10 |
|
11 |
- |
|
12 |
-RUN tdnf install -y net-tools sed openjre shadow |
|
11 |
+COPY [ "./stage-rpms-tdnf.conf", "./tmp/stage-rpms.repo", "/tmp/tdnf/" ] |
|
12 |
+RUN tdnf tdnf -c /tmp/tdnf/stage-rpms-tdnf.conf install -y net-tools sed openjre8 shadow --refresh |
|
13 | 13 |
# Copy files |
14 | 14 |
COPY [ "./tmp/wavefront-proxy/etc/wavefront/wavefront-proxy/log4j2-stdout.xml", \ |
15 | 15 |
"./tmp/wavefront-proxy/etc/wavefront/wavefront-proxy/log4j2.xml", \ |
... | ... |
@@ -1,5 +1,7 @@ |
1 | 1 |
#!/bin/bash -e |
2 | 2 |
|
3 |
+source common.inc |
|
4 |
+ |
|
3 | 5 |
DIST_TAG=$1 |
4 | 6 |
DIST_VER=$2 |
5 | 7 |
SPEC_DIR=$3 |
... | ... |
@@ -34,6 +36,9 @@ cp ${WAVEFRONT_PROXY_RPM_FILE} tmp/wavefront-proxy/ |
34 | 34 |
pushd ./tmp/wavefront-proxy |
35 | 35 |
rpm2cpio ${WAVEFRONT_PROXY_RPM} | cpio -vid |
36 | 36 |
popd |
37 |
+ |
|
38 |
+setup_repo |
|
39 |
+ |
|
37 | 40 |
docker build --rm -t ${IMG_NAME} -f Dockerfile.wavefront-proxy . |
38 | 41 |
docker save -o ${WAVEFRONT_PROXY_TAR} ${IMG_NAME} |
39 | 42 |
gzip ${WAVEFRONT_PROXY_TAR} |