diff --git a/Dockerfile b/Dockerfile index 372318e6..57b889b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,4 +3,5 @@ FROM public.ecr.aws/docker/library/golang:1.23 RUN apt -y update && apt -y upgrade && apt -y install rpm tar gzip wget zip && apt clean all RUN mkdir /session-manager-plugin -WORKDIR /session-manager-plugin \ No newline at end of file +WORKDIR /session-manager-plugin +ENV HOME=/session-manager-plugin diff --git a/README.md b/README.md index 00d26b9b..e37388d7 100644 --- a/README.md +++ b/README.md @@ -40,11 +40,17 @@ To build the Session Manager plugin in a `Docker` container, complete the follow 2. Build the `docker` image ``` -docker build -t session-manager-plugin-image . +docker build --tag session-manager-plugin-image . ``` 3. Build the plugin ``` -docker run -it --rm --name session-manager-plugin -v `pwd`:/session-manager-plugin session-manager-plugin-image make release +docker run --interactive --rm --tty \ + --name session-manager-plugin \ + --security-opt label=disable \ + --user $(id --user):$(id --group) \ + --volume ${PWD}:/session-manager-plugin \ + session-manager-plugin-image \ + make release ``` ### Working with Linux