Skip to content

Commit

Permalink
update skywire dockerfile and configs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpalide committed Mar 25, 2024
1 parent e1c6bc4 commit ba88986
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 27 deletions.
7 changes: 0 additions & 7 deletions docker/images/skywire-visor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,12 @@ RUN apk add --no-cache make git build-base && \
cd skywire && \
sh -c /skywire/docker/images/visor/install-preq.sh && \
make build-race && \
mkdir -p /apps && \
cp ./build/apps/vpn-server /apps/ && \
cp ./build/apps/vpn-client /apps/ && \
cp ./build/apps/skysocks /apps/ && \
cp ./build/apps/skysocks-client /apps/ && \
cp ./build/apps/skychat /apps/

## Resulting image
FROM ${base} as visor-runner

COPY --from=builder /skywire/docker/images/visor/install-preq.sh /release/install-preq.sh
COPY --from=builder /release /release
COPY --from=builder /apps /apps

RUN sh -c /release/install-preq.sh \
&& rm -rf /release/install-preq.sh \
Expand Down
9 changes: 1 addition & 8 deletions docker/images/skywire-visor/DockerfileInt
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,13 @@ WORKDIR /skywire

RUN apk add --no-cache make git build-base && \
sh -c /skywire/docker/images/visor/install-preq.sh && \
make build-race && \
mkdir -p /apps && \
cp ./build/apps/vpn-server /apps/ && \
cp ./build/apps/vpn-client /apps/ && \
cp ./build/apps/skysocks /apps/ && \
cp ./build/apps/skysocks-client /apps/ && \
cp ./build/apps/skychat /apps/
make build-race

## Resulting image
FROM ${base} as visor-runner

COPY --from=builder /skywire/docker/images/visor/install-preq.sh /release/install-preq.sh
COPY --from=builder /release /release
COPY --from=builder /apps /apps

RUN sh -c /release/install-preq.sh \
&& rm -rf /release/install-preq.sh \
Expand Down
24 changes: 19 additions & 5 deletions docker/integration/visorA.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,20 @@
"apps": [
{
"name": "vpn-client",
"binary": "vpn-client",
"binary": "skywire",
"args": [
"app",
"vpn-client"
],
"auto_start": false,
"port": 43
},
{
"name": "skychat",
"binary": "skychat",
"binary": "skywire",
"args": [
"app",
"skychat",
"--addr",
"*:8001"
],
Expand All @@ -58,19 +64,27 @@
},
{
"name": "skysocks",
"binary": "skysocks",
"binary": "skywire",
"args": [
"app",
"skysocks"
],
"auto_start": true,
"port": 3
},
{
"name": "vpn-server",
"binary": "vpn-server",
"binary": "skywire",
"args": [
"app",
"vpn-server"
],
"auto_start": false,
"port": 44
}
],
"server_addr": ":5505",
"bin_path": "/apps"
"bin_path": "/"
},
"hypervisors": ["0348c941c5015a05c455ff238af2e57fb8f914c399aab604e9abb5b32b91a4c1fe"],
"cli_addr": "0.0.0.0:3435",
Expand Down
12 changes: 10 additions & 2 deletions docker/integration/visorB.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,21 @@
"apps": [
{
"name": "vpn-client",
"binary": "vpn-client",
"binary": "skywire",
"args": [
"app",
"vpn-client"
],
"auto_start": false,
"port": 43
},
{
"name": "vpn-server",
"binary": "vpn-server",
"binary": "skywire",
"args": [
"app",
"vpn-server"
],
"auto_start": false,
"port": 44
}
Expand Down
20 changes: 15 additions & 5 deletions docker/integration/visorC.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@
"apps": [
{
"name": "vpn-client",
"binary": "vpn-client",
"binary": "skywire",
"args": [
"app",
"vpn-client",
"--srv",
"024ec47420176680816e0406250e7156465e4531f5b26057c9f6297bb0303558c7",
"--killswitch=false"
Expand All @@ -59,8 +61,10 @@
},
{
"name": "skychat",
"binary": "skychat",
"binary": "skywire",
"args": [
"app",
"skychat",
"--addr",
"*:8001"
],
Expand All @@ -69,8 +73,10 @@
},
{
"name": "skysocks-client",
"binary": "skysocks-client",
"binary": "skywire",
"args": [
"app",
"skysocks-client",
"--srv",
"024ec47420176680816e0406250e7156465e4531f5b26057c9f6297bb0303558c7",
"--addr",
Expand All @@ -81,13 +87,17 @@
},
{
"name": "vpn-server",
"binary": "vpn-server",
"binary": "skywire",
"args": [
"app",
"vpn-server"
],
"auto_start": false,
"port": 44
}
],
"server_addr": ":5507",
"bin_path": "/apps",
"bin_path": "/",
"display_node_ip": false
},
"survey_whitelist": null,
Expand Down

0 comments on commit ba88986

Please sign in to comment.