-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mainnet' of https://github.com/skycoin/skywire into fix…
…/data_race_therealssh
- Loading branch information
Showing
156 changed files
with
1,273 additions
and
8,198 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,6 @@ | ||
.git | ||
bin | ||
skywire | ||
ci_scripts | ||
apps | ||
integration |
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
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
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,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [[ $# -ne 2 ]]; then | ||
exit 0 | ||
fi | ||
|
||
# Inputs. | ||
action=$1 | ||
filename=$2 | ||
|
||
# Line to comment/uncomment in go.mod | ||
line="replace github.com\/skycoin\/dmsg => ..\/dmsg" | ||
|
||
function print_usage() { | ||
echo $"Usage: $0 (comment|uncomment) <filename>" | ||
} | ||
|
||
case "$action" in | ||
comment) | ||
echo "commenting ${filename}..." | ||
sed -i -e "/$line/s/^\/*/\/\//" ${filename} | ||
;; | ||
uncomment) | ||
echo "uncommenting ${filename}..." | ||
sed -i -e "/$line/s/^\/\/*//" ${filename} | ||
;; | ||
help) | ||
print_usage | ||
;; | ||
*) | ||
print_usage | ||
exit 1 | ||
;; | ||
esac |
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
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
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
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
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
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
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
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
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
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
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
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
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,38 @@ | ||
# Builder | ||
# ARG builder_base=golang:alpine | ||
ARG base=alpine | ||
FROM golang:alpine as builder | ||
|
||
ARG CGO_ENABLED=0 | ||
ENV CGO_ENABLED=${CGO_ENABLED} \ | ||
GOOS=linux \ | ||
GOARCH=amd64 \ | ||
GO111MODULE=on | ||
|
||
COPY . skywire | ||
|
||
WORKDIR skywire | ||
|
||
RUN go build -mod=vendor -tags netgo -ldflags="-w -s" \ | ||
-o skywire-node cmd/skywire-node/skywire-node.go &&\ | ||
go build -mod=vendor -ldflags="-w -s" -o ./apps/skychat.v1.0 ./cmd/apps/skychat &&\ | ||
go build -mod=vendor -ldflags="-w -s" -o ./apps/helloworld.v1.0 ./cmd/apps/helloworld &&\ | ||
go build -mod=vendor -ldflags="-w -s" -o ./apps/socksproxy.v1.0 ./cmd/apps/therealproxy &&\ | ||
go build -mod=vendor -ldflags="-w -s" -o ./apps/socksproxy-client.v1.0 ./cmd/apps/therealproxy-client &&\ | ||
go build -mod=vendor -ldflags="-w -s" -o ./apps/SSH.v1.0 ./cmd/apps/therealssh &&\ | ||
go build -mod=vendor -ldflags="-w -s" -o ./apps/SSH-client.v1.0 ./cmd/apps/therealssh-client | ||
|
||
|
||
## Resulting image | ||
FROM ${base} as node-runner | ||
|
||
COPY --from=builder /go/skywire/skywire-node skywire-node | ||
COPY --from=builder /go/skywire/apps bin/apps | ||
COPY --from=builder /go/skywire/docker/images/node/update.sh update.sh | ||
|
||
RUN ./update.sh | ||
|
||
ENTRYPOINT [ "./skywire-node" ] | ||
|
||
# default target | ||
FROM node-runner |
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,16 @@ | ||
#!/bin/sh | ||
|
||
if type apt > /dev/null; then | ||
apt-get update && apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
fi | ||
|
||
if type apk > /dev/null; then | ||
|
||
apk update | ||
apk upgrade | ||
apk add --no-cache ca-certificates openssl iproute2 | ||
update-ca-certificates --fresh | ||
apk add iproute2 | ||
fi |
Oops, something went wrong.