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

12345678910111213141516171819202122232425262728293031323334353637383940
  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. github.com/containerd/containerd/errdefs
  22. # Vendor cleanup - thanks golang.
  23. # see: https://github.com/moby/moby/issues/28269
  24. RUN rm -rf \
  25. $GOPATH/src/github.com/docker/docker/vendor \
  26. $GOPATH/src/github.com/docker/distribution/vendor
  27. # Create workdir
  28. RUN mkdir /workdir
  29. WORKDIR /workdir
  30. # Copy our sources
  31. COPY src /workdir/src
  32. COPY hosted /workdir/hosted
  33. # and build them
  34. RUN go build -o /workdir/companion src/*.go
  35. ENTRYPOINT [ "/workdir/companion" ]