Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

fix recipe builder issues #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ FROM golang:1.14.0

ARG USER_UID=1000
ARG DOCKER_GID=997
ARG DOCKER_VERSION=v20.10.8+incompatible

RUN apt-get update && \
apt-get install -y --reinstall ca-certificates libgnutls30 && \
apt-get install -y openjdk-11-jdk-headless ansible && \
rm -rf /var/lib/apt/lists/*

# We need to use dep or go mod to handle deps.
RUN go get -x -u gopkg.in/yaml.v2 github.com/docker/docker/api/types github.com/docker/docker/client

RUN groupadd --gid ${DOCKER_GID} docker
RUN useradd --uid ${USER_UID} \
--gid ${DOCKER_GID} \
Expand All @@ -27,11 +26,13 @@ COPY --chown=sas:docker addons ./addons
COPY --chown=sas:docker samples ./samples
COPY --chown=sas:docker tests ./tests
COPY --chown=sas:docker util ./util
COPY --chown=sas:docker *.yml *.go ./
COPY --chown=sas:docker *.yml *.go go.mod ./
COPY --chown=sas:docker util/sas-orchestration ./util/programming-only-single/sas-orchestration

RUN chown -R ${USER_GID}:${DOCKER_GID} /sas-container-recipes

USER sas

RUN go mod download

ENTRYPOINT ["/usr/local/go/bin/go", "run", "main.go", "container.go", "order.go"]
11 changes: 11 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module github.com/sas/sas-container-recipes

go 1.14

require (
github.com/containerd/containerd v1.5.7 // indirect
github.com/docker/docker v20.10.8+incompatible
github.com/docker/go-connections v0.4.0 // indirect
google.golang.org/grpc v1.41.0 // indirect
gopkg.in/yaml.v2 v2.4.0
)