diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 593f4e6..0000000 --- a/.dockerignore +++ /dev/null @@ -1,2 +0,0 @@ -.git -vendor diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index baa4c3f..0000000 --- a/Dockerfile +++ /dev/null @@ -1,19 +0,0 @@ -FROM golang:1.15.6-alpine as builder - -WORKDIR /src - -COPY go.mod go.sum ./ - -RUN go mod download - -COPY . . - -RUN CGO_ENABLED=0 GOOS=linux go build -o gatekeeper . - -FROM alpine:3.12 - -WORKDIR /opt/gatekeeper - -COPY --from=builder /src/gatekeeper /opt/gatekeeper/gatekeeper - -CMD ["sleep", "10"] diff --git a/build.sh b/build.sh deleted file mode 100755 index 4a4b164..0000000 --- a/build.sh +++ /dev/null @@ -1,13 +0,0 @@ -#/bin/bash - -set -eoux pipefail - -docker build . -t gatekeeper - -docker rm gatekeeper || exit 0 - -docker run -d --name gatekeeper gatekeeper - -docker cp gatekeeper:/opt/gatekeeper/gatekeeper . - -docker kill gatekeeper diff --git a/dockerfiles/Dockerfile.alpine b/dockerfiles/Dockerfile.alpine deleted file mode 100644 index fec3e57..0000000 --- a/dockerfiles/Dockerfile.alpine +++ /dev/null @@ -1,15 +0,0 @@ -FROM alpine:3.12 - -RUN apk add --update openssh-client \ - ca-certificates - -RUN addgroup -S deploy && adduser --disabled-password --home /home/deploy --ingroup deploy deploy - -RUN echo "Host *" >> /etc/ssh/ssh_config -RUN echo " StrictHostKeyChecking no" >> /etc/ssh/ssh_config - -USER deploy -WORKDIR /home/deploy - -RUN mkdir ~/.ssh -RUN mkdir ~/keys diff --git a/dockerfiles/Dockerfile.ubuntu b/dockerfiles/Dockerfile.ubuntu deleted file mode 100644 index ce352ca..0000000 --- a/dockerfiles/Dockerfile.ubuntu +++ /dev/null @@ -1,13 +0,0 @@ -FROM ubuntu:18.04 - -RUN apk add --update openssh - -RUN apt update && apt install software-properties-common ssh -y - -USER deploy -WORKDIR /home/deploy - -RUN mkdir ~/.ssh -RUN mkdir ~/keys - -RUN echo "Host * \n StrictHostKeyChecking no" > ~/.ssh/config diff --git a/scripts/setup.sh b/scripts/setup.sh deleted file mode 100644 index 2f21824..0000000 --- a/scripts/setup.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -sudo su - -mkdir /opt/gatekeeper