Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dennis Zielke
committed
Apr 12, 2019
1 parent
da834c1
commit ae1f18b
Showing
47 changed files
with
155 additions
and
63 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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,21 @@ | ||
ARG basedir="apps/go-calc-backend/app" | ||
ARG build_info="Docker container build" | ||
|
||
FROM golang:alpine AS builder | ||
RUN apk update && apk add --no-cache git | ||
RUN adduser -D -g '' appuser | ||
WORKDIR $GOPATH/src/phoenix/go-calc-backend | ||
COPY ${basedir}/ . | ||
RUN go get -d -v | ||
#RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /go/bin/go-calc-backend . | ||
RUN GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o /go/bin/go-calc-backend | ||
|
||
FROM alpine:latest as go-calc-backend | ||
RUN apk --no-cache add ca-certificates | ||
WORKDIR /root/ | ||
COPY --from=builder /go/bin/go-calc-backend /go/bin/go-calc-backend | ||
EXPOSE 8080 | ||
USER appuser | ||
ENV NODE_ENV production | ||
ENV BUILD_INFO $build_info | ||
ENTRYPOINT ["/go/bin/go-calc-backend"] |
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
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
multi-calculator/js-calc-backend/Dockerfile → apps/js-calc-backend/Dockerfile
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,7 +1,7 @@ | ||
FROM node:8.12.0-alpine | ||
FROM node:alpine | ||
RUN mkdir -p /usr/src/app | ||
COPY ./app/* /usr/src/app/ | ||
WORKDIR /usr/src/app | ||
RUN npm install | ||
EXPOSE 80 | ||
EXPOSE 8080 | ||
CMD [ "npm", "start" ] |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...-calculator/js-calc-backend/app/config.js → apps/js-calc-backend/app/config.js
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,6 +1,6 @@ | ||
var config = {} | ||
|
||
config.instrumentationKey = process.env.INSTRUMENTATIONKEY; | ||
config.port = process.env.PORT || 80; | ||
config.port = process.env.PORT || 8080; | ||
|
||
module.exports = config; |
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
multi-calculator/js-calc-frontend/Dockerfile → apps/js-calc-frontend/Dockerfile
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,9 +1,9 @@ | ||
FROM node:8.12.0-alpine | ||
FROM node:alpine | ||
RUN mkdir -p /usr/src/app | ||
COPY ./app/* /usr/src/app/ | ||
RUN mkdir -p /usr/src/app/public | ||
COPY ./app/public/* /usr/src/app/public/ | ||
WORKDIR /usr/src/app | ||
RUN npm install | ||
EXPOSE 80 | ||
EXPOSE 8080 | ||
CMD [ "npm", "start" ] |
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,4 @@ | ||
{ | ||
"fileUris": ["https://raw.githubusercontent.com/denniszielke/container_demos/master/arm/cse.sh"], | ||
"commandToExecute": "./cse.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
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
Oops, something went wrong.