-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d256856
commit 317b17f
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM alpine:latest AS wander | ||
|
||
ARG WANDER_VERSION | ||
ENV WANDER_VERSION=$WANDER_VERSION | ||
|
||
WORKDIR /usr/bin | ||
RUN apk add curl \ | ||
&& curl -L https://github.com/robinovitch61/wander/releases/download/v${WANDER_VERSION}/wander_${WANDER_VERSION}_Linux_x86_64.tar.gz -o wander.gz \ | ||
&& tar -xzvf wander.gz | ||
|
||
CMD ["wander", "serve", "-p", "22", "-h", "localhost"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
job "wander-ssh" { | ||
group "wander-ssh" { | ||
network { | ||
port "ssh" { | ||
to = 22 | ||
} | ||
} | ||
|
||
task "wander-ssh" { | ||
driver = "docker" | ||
|
||
config { | ||
image = "wander-ssh:local" | ||
ports = ["ssh"] | ||
auth_soft_fail = true | ||
} | ||
|
||
identity { | ||
env = true | ||
file = true | ||
} | ||
|
||
resources { | ||
cpu = 500 | ||
memory = 256 | ||
} | ||
} | ||
} | ||
} |