Skip to content

Commit

Permalink
Added a makefile and an example of a derived image
Browse files Browse the repository at this point in the history
  • Loading branch information
neochrome committed Mar 16, 2016
1 parent 0bcdd6f commit f0aae8c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# use latest or one of the published tags as your base
FROM neochrome/bastion:latest
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.DEFAULT_GOAL := build

BUILD_TAG=neochrome/bastion:latest
EXAMPLE_TAG=neochrome/bastion:example

build:
@docker build -t $(BUILD_TAG) .

example: build
@docker build -t $(EXAMPLE_TAG) -f Dockerfile.example .

example-run: example
@docker run --rm -it -p 2222:22 -v $$HOME/.ssh/id_rsa.pub:/bastion/authorized_keys $(EXAMPLE_TAG)

example-test:
@ssh bastion@localhost -p 2222 /bin/true

clean:
@docker rmi -f $(EXAMPLE_TAG) $(BUILD_TAG)
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ to `/bastion`. I.e, one must connect as the `bastion` user like so:
```
$ ssh bastion@hostname
```
Please see [Dockerfile.example](Dockerfile.example) for a minimal example of this.

### google-authenticator
Upon first connection `google-authenticator` will be run in order to
Expand Down

0 comments on commit f0aae8c

Please sign in to comment.