Skip to content

Commit

Permalink
README update, run as user
Browse files Browse the repository at this point in the history
  • Loading branch information
wardviaene committed Sep 10, 2018
1 parent f9901f3 commit 95f157d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ RUN apk add -u -t build-tools curl git make && \
#
FROM alpine:latest

RUN apk --no-cache add ca-certificates
RUN apk --no-cache add ca-certificates && \
addgroup -g 1000 app && \
adduser -h /app -s /bin/sh -G app -S -u 1000 app

WORKDIR /app

COPY --from=go-builder /go/src/github.com/in4it/ecs-ssh/ecs-ssh-linux-amd64 ecs-ssh

USER app

CMD ["./ecs-ssh"]
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ A shell frontend to ssh into ECS instances. Will display ECS cluster, services a
# Preview

# Run

Run with docker, mount the ~/.aws folder (or pass the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY), mount the ssh-agent socket, and pass the environment variable for SSH agent
```
docker run --rm -it -e AWS_REGION=us-east-1 in4it/ecs-ssh
docker run --rm -it -e AWS_REGION=us-east-1 -v ~/.aws:/app/.aws -v $SSH_AUTH_SOCK:/ssh-agent -e SSH_AUTH_SOCK=/ssh-agent in4it/ecs-ssh
```

## Manual build
Expand Down

0 comments on commit 95f157d

Please sign in to comment.