Skip to content
Snippets Groups Projects
Commit 7d72ad98 authored by Rohith's avatar Rohith Committed by GitHub
Browse files

- adding a user in the docker file to ensure we dont run as root (#104)

- shifting the version to v1.2.1
parent d7eb102c
Branches
Tags v1.2.1
No related merge requests found
......@@ -2,7 +2,9 @@ FROM alpine:3.3
MAINTAINER Rohith <gambol99@gmail.com>
RUN apk update && \
apk add ca-certificates
apk add ca-certificates && \
adduser -S proxy && \
addgroup -S proxy
ADD templates/ opt/templates
ADD bin/keycloak-proxy /opt/keycloak-proxy
......@@ -10,4 +12,6 @@ RUN chmod +x /opt/keycloak-proxy
WORKDIR "/opt"
USER proxy
ENTRYPOINT [ "/opt/keycloak-proxy" ]
NAME=keycloak-proxy
AUTHOR=gambol99
AUTHOR_EMAIL=gambol99@gmail.com
......@@ -41,6 +40,13 @@ docker-build:
${SUDO} docker run --rm -v ${ROOT_DIR}:/go/src/github.com/gambol99/keycloak-proxy \
-w /go/src/github.com/gambol99/keycloak-proxy -e GOOS=linux golang:${GOVERSION} make static
docker-test:
@echo "--> Running the docker test"
${SUDO} docker run --rm -ti -p 3000:3000 \
-v ${ROOT_DIR}/config.yml:/etc/keycloak/config.yml:ro \
-v ${ROOT_DIR}/tests:/opt/tests:ro \
${REGISTRY}/${AUTHOR}/${NAME}:${VERSION} --config /etc/keycloak/config.yml
docker:
@echo "--> Building the docker image"
${SUDO} docker build -t ${REGISTRY}/${AUTHOR}/${NAME}:${VERSION} .
......
......@@ -21,7 +21,7 @@ import (
)
var (
release = "v1.2.0"
release = "v1.2.1"
gitsha = "no gitsha provided"
version = release + " (git+sha: " + gitsha + ")"
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment