-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate Kubernetes deployment images to opensuse
- Loading branch information
Irfan Habib
committed
Oct 11, 2017
1 parent
744105d
commit e06a07e
Showing
23 changed files
with
78 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
FROM alpine:latest | ||
|
||
RUN apk update && \ | ||
apk add ca-certificates openssl git &&\ | ||
mkdir -p /srv | ||
FROM splatform/stratos-preflight-base:dev | ||
|
||
RUN mkdir -p /srv | ||
WORKDIR /srv | ||
COPY outputs/* /srv/ | ||
COPY /deploy/db/scripts/run-preflight-job.sh /run-preflight-job.sh | ||
COPY /deploy/tools/generate_cert.sh /generate_cert.sh | ||
RUN chmod +x portal-proxy | ||
EXPOSE 443 | ||
CMD ["sh", "-c", "/run-preflight-job.sh; /srv/portal-proxy"] | ||
CMD ["bash", "-c", "/run-preflight-job.sh; /srv/portal-proxy"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
FROM debian:jessie | ||
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y openssl | ||
FROM splatform/stratos-preflight-base:dev | ||
COPY /deploy/db/scripts/run-preflight-job.sh /run-preflight-job.sh | ||
COPY /deploy/tools/generate_cert.sh /generate_cert.sh | ||
CMD ["/run-preflight-job.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
set -e | ||
|
||
function execStatement { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
set -e | ||
|
||
# Step 1 - Set the lock file on the shared volume | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 3 additions & 14 deletions
17
deploy/stratos-base-images/Dockerfile.stratos-bk-build-base.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,5 @@ | ||
FROM {{BASE_IMAGE}} | ||
FROM splatform/stratos-go-base:dev | ||
|
||
RUN zypper -n ref && \ | ||
zypper -n up && \ | ||
zypper in -y wget which tar git gcc | ||
RUN wget https://nodejs.org/dist/v6.11.4/node-v6.11.4-linux-x64.tar.xz && \ | ||
RUN cd / && wget https://nodejs.org/dist/v6.11.4/node-v6.11.4-linux-x64.tar.xz && \ | ||
tar -xf node-v6.11.4-linux-x64.tar.xz | ||
RUN wget https://storage.googleapis.com/golang/go1.8.4.linux-amd64.tar.gz && \ | ||
tar -xzf go1.8.4.linux-amd64.tar.gz -C /usr/local/ && \ | ||
mkdir -p /go/bin && \ | ||
mkdir -p /go/src | ||
ENV PATH $PATH:/node-v6.11.4-linux-x64/bin:/usr/local/go/bin:/go/bin | ||
ENV GOPATH /go | ||
RUN wget https://glide.sh/get && \ | ||
chmod +x get && \ | ||
./get | ||
ENV PATH $PATH:/node-v6.11.4-linux-x64/bin |
15 changes: 15 additions & 0 deletions
15
deploy/stratos-base-images/Dockerfile.stratos-go-base.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM {{BASE_IMAGE}} | ||
|
||
RUN zypper -n ref && \ | ||
zypper -n up && \ | ||
zypper in -y wget which tar git gcc | ||
RUN wget https://storage.googleapis.com/golang/go1.8.4.linux-amd64.tar.gz && \ | ||
tar -xzf go1.8.4.linux-amd64.tar.gz -C /usr/local/ && \ | ||
mkdir -p /go/bin && \ | ||
mkdir -p /go/src | ||
ENV PATH $PATH:/usr/local/go/bin:/go/bin | ||
ENV GOPATH /go | ||
RUN wget https://glide.sh/get && \ | ||
chmod +x get && \ | ||
./get | ||
WORKDIR /go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,2 @@ | ||
FROM {{BASE_IMAGE}} | ||
RUN zypper -n ref && \ | ||
zypper -n up && \ | ||
zypper in -y go git | ||
RUN mkdir /go | ||
ENV GOPATH /go | ||
WORKDIR /go | ||
FROM splatform/stratos-go-base:dev | ||
RUN go get bitbucket.org/liamstask/goose/cmd/goose |
2 changes: 2 additions & 0 deletions
2
deploy/stratos-base-images/Dockerfile.stratos-preflight-base.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FROM {{BASE_IMAGE}} | ||
WORKDIR / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.