The companion container spawned specifically for one user, allowing them to start and stop challenge containers and enter flags.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. FROM golang
  2. # Install libraries
  3. RUN go get \
  4. github.com/docker/distribution/reference \
  5. github.com/docker/go-units \
  6. github.com/gogo/protobuf/proto \
  7. github.com/opencontainers/go-digest \
  8. github.com/opencontainers/image-spec/specs-go/v1 \
  9. github.com/pkg/errors \
  10. golang.org/x/net/context/ctxhttp \
  11. golang.org/x/net/proxy \
  12. github.com/docker/docker/api/types \
  13. github.com/docker/docker/api/types/container \
  14. github.com/docker/docker/api/types/network \
  15. github.com/docker/docker/client \
  16. github.com/docker/go-connections/nat \
  17. github.com/gorilla/mux \
  18. github.com/sirupsen/logrus \
  19. google.golang.org/grpc/codes \
  20. google.golang.org/grpc/status
  21. # Vendor cleanup - thanks golang.
  22. # see: https://github.com/moby/moby/issues/28269
  23. RUN rm -rf \
  24. $GOPATH/src/github.com/docker/docker/vendor \
  25. $GOPATH/src/github.com/docker/distribution/vendor
  26. # Create workdir
  27. RUN mkdir /workdir
  28. WORKDIR /workdir
  29. # Copy our sources
  30. COPY src /workdir/src
  31. COPY hosted /workdir/hosted
  32. # and build them
  33. RUN go build -o /workdir/companion src/*.go
  34. ENTRYPOINT [ "/workdir/companion" ]