UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Platform One
P
Party Bus
Valkyrie
valkyrie-api
Commits
d5fbd084
Commit
d5fbd084
authored
Jul 01, 2021
by
abrichards
Browse files
update dockerfile
parent
0fdd6264
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
Dockerfile
Dockerfile
+3
-4
README.md
README.md
+8
-0
No files found.
Dockerfile
View file @
d5fbd084
# NOTE: USING THIS IMAGE UNTIL registry1 credentials are added to IL2 runners
# Build the manager binary
FROM
registry.il2.dso.mil/platform-one/devops/pipeline-templates/valkyrie/golang-builder-1.6:1.0 as builder
FROM
registry.il2.dso.mil/platform-one/devops/pipeline-templates/valkyrie/golang-builder-1.
1
6:1.0 as builder
USER
root
WORKDIR
/workspace
# set go module cache
ENV
GOMODCACHE=/workspace/.gomodcache
# Copy the Go Modules manifests
COPY
. .
USER
root
RUN
chmod
755 go.sum
# RUN chmod 755 go.sum
# download with json logging
# RUN go mod download -json
RUN
go mod download
...
...
README.md
View file @
d5fbd084
...
...
@@ -3,7 +3,15 @@
## Env Variables
-
for local building and to closer simulate the pipeline set
-
from root folder of project
-
Note: GOMODCACHE seems to be only supported in go 1.16 +
-
export GOMODCACHE=$(pwd)/.gomodcache
-
example:
```
export GOMODCACHE=.gomodcache
go mod download -json
find .gomodcache | wc -l
docker build --progress plain -t abr .
```
### Golang Frameworks
-
kubebuilder
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment