forked from ghostunnel/ghostunnel
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
16 changed files
with
33 additions
and
37 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
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 |
---|---|---|
@@ -1,23 +1,21 @@ | ||
# Dockerfile for squareup/ghostunnel, useful as a basis for other images. | ||
# Dockerfile for ghostunnel/ghostunnel, useful as a basis for other images. | ||
# | ||
# To build this image: | ||
# docker build -t squareup/ghostunnel . | ||
# docker build -t ghostunnel/ghostunnel . | ||
# | ||
# To run ghostunnel from the image (for example): | ||
# docker run --rm squareup/ghostunnel --version | ||
# docker run --rm ghostunnel/ghostunnel --version | ||
|
||
FROM golang:1.14.7-alpine as build | ||
|
||
MAINTAINER Cedric Staub "[email protected]" | ||
|
||
# Dependencies | ||
RUN apk add --no-cache --update gcc musl-dev libtool make git | ||
|
||
# Copy source | ||
COPY . /go/src/github.com/square/ghostunnel | ||
COPY . /go/src/github.com/ghostunnel/ghostunnel | ||
|
||
# Build | ||
RUN cd /go/src/github.com/square/ghostunnel && \ | ||
RUN cd /go/src/github.com/ghostunnel/ghostunnel && \ | ||
GO111MODULE=on make clean ghostunnel && \ | ||
cp ghostunnel /usr/bin/ghostunnel | ||
|
||
|
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 |
---|---|---|
@@ -1,25 +1,23 @@ | ||
# Dockerfile for running integration tests, includes PKCS11/SoftHSM setup. | ||
# | ||
# Build image: | ||
# docker build --build-arg GO_VERSION=[VERSION] -t squareup/ghostunnel-test -f Dockerfile-test . | ||
# docker build --build-arg GO_VERSION=[VERSION] -t ghostunnel/ghostunnel-test -f Dockerfile-test . | ||
# | ||
# Run integration tests: | ||
# docker run -v /dev/log:/dev/log -v $PWD:/go/src/github.com/square/ghostunnel squareup/ghostunnel-test | ||
# docker run -v /dev/log:/dev/log -v $PWD:/go/src/github.com/ghostunnel/ghostunnel ghostunnel/ghostunnel-test | ||
|
||
ARG GO_VERSION | ||
|
||
FROM golang:${GO_VERSION} | ||
|
||
MAINTAINER Cedric Staub "[email protected]" | ||
|
||
# Install build dependencies | ||
RUN apt-get update && \ | ||
apt-get install -y build-essential python3-minimal netcat softhsm2 rsyslog git python3-distutils </dev/null && \ | ||
mkdir -p /etc/softhsm /var/lib/softhsm/tokens /go/src/github.com/square/ghostunnel && \ | ||
mkdir -p /etc/softhsm /var/lib/softhsm/tokens /go/src/github.com/ghostunnel/ghostunnel && \ | ||
go get github.com/wadey/gocovmerge && \ | ||
go get golang.org/x/tools/cmd/cover | ||
|
||
WORKDIR /go/src/github.com/square/ghostunnel | ||
WORKDIR /go/src/github.com/ghostunnel/ghostunnel | ||
|
||
ENV GO111MODULE=on | ||
|
||
|
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