Skip to content

Commit

Permalink
fix docker issue
Browse files Browse the repository at this point in the history
  • Loading branch information
moficodes committed May 19, 2020
1 parent 0ecdc78 commit da5cdd5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.13-alpine AS builder
FROM golang:1.14-alpine AS builder

# Create the user and group files that will be used in the running container to
# run the process as an unprivileged user.
Expand All @@ -24,13 +24,13 @@ RUN go mod download
# Import the code from the context.
COPY pkg/ pkg/
COPY cmd/ cmd/
COPY internals/ internals/

# Build the executable to `/app`. Mark the build as statically linked.
RUN CGO_ENABLED=0 go build \
-installsuffix 'static' \
-o /app ./cmd/web/main.go


FROM node:12.14 as build-deps

WORKDIR /usr/src/app
Expand Down
4 changes: 2 additions & 2 deletions config/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
run: admin
spec:
containers:
- image: moficodes/ibmcloud-kubernetes-admin:v0.1.9
- image: moficodes/ibmcloud-kubernetes-admin:v0.1.12
imagePullPolicy: Always
name: destination
env:
Expand All @@ -41,7 +41,7 @@ spec:
name: cloudant-secret
key: host
- name: TICKER_PERIOD
value: "1200"
value: "3600"
resources:
limits:
cpu: 500m
Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/moficodes/ibmcloud-kubernetes-admin

go 1.13
go 1.14

require (
github.com/IBM-Cloud/go-cloudant v0.0.0-20161013050022-0ded5c7f524e
Expand All @@ -10,8 +10,6 @@ require (
github.com/mitchellh/mapstructure v1.3.0
github.com/parnurzeal/gorequest v0.2.16 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/sendgrid/rest v2.4.1+incompatible // indirect
github.com/sendgrid/sendgrid-go v3.5.0+incompatible // indirect
github.com/smartystreets/goconvey v1.6.4 // indirect
github.com/stretchr/testify v1.5.1 // indirect
github.com/timjacobi/go-couchdb v0.0.0-20160817113035-5f9d2a1a29e5 // indirect
Expand Down
6 changes: 0 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rogpeppe/go-charset v0.0.0-20180617210344-2471d30d28b4/go.mod h1:qgYeAmZ5ZIpBWTGllZSQnw97Dj+woV0toclVaRGI8pc=
github.com/sendgrid/rest v1.0.2 h1:xdfALkR1m9eqf41/zEnUmV0fw4b31ZzGZ4Dj5f2/w04=
github.com/sendgrid/rest v2.4.1+incompatible h1:HDib/5xzQREPq34lN3YMhQtMkdXxS/qLp5G3k9a5++4=
github.com/sendgrid/rest v2.4.1+incompatible/go.mod h1:kXX7q3jZtJXK5c5qK83bSGMdV6tsOE70KbHoqJls4lE=
github.com/sendgrid/sendgrid-go v1.2.0 h1:2K3teZdhaPe12ftFyFL4AWDH4QmNPc+sCi6mWFx5+oo=
github.com/sendgrid/sendgrid-go v3.5.0+incompatible h1:kosbgHyNVYVaqECDYvFVLVD9nvThweBd6xp7vaCT3GI=
github.com/sendgrid/sendgrid-go v3.5.0+incompatible/go.mod h1:QRQt+LX/NmgVEvmdRw0VT/QgUn499+iza2FnDca9fg8=
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM=
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s=
Expand Down

0 comments on commit da5cdd5

Please sign in to comment.