Skip to content

Commit

Permalink
start wish example
Browse files Browse the repository at this point in the history
  • Loading branch information
robinovitch61 committed Nov 12, 2023
1 parent d256856 commit 317b17f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
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"]
29 changes: 29 additions & 0 deletions example-ssh-app.hcl
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
}
}
}
}

0 comments on commit 317b17f

Please sign in to comment.