pomerium/scripts/build-dev-docker.bash
Caleb Doxsey 2824faecbf
frontend: react+mui (#3004)
* mui v5 wip

* wip

* wip

* wip

* use compressor for all controlplane endpoints

* wip

* wip

* add deps

* fix authenticate URL

* fix test

* fix test

* fix build

* maybe fix build

* fix integration test

* remove image asset test

* add yarn.lock
2022-02-07 08:47:58 -07:00

29 lines
605 B
Bash
Executable file

#!/bin/bash
set -euxo pipefail
_dir=/tmp/pomerium-dev-docker
mkdir -p "$_dir"
# build linux binary
env GOOS=linux make build
cp bin/pomerium $_dir/
# build docker image
(
cd $_dir
cat <<EOF >config.yaml
EOF
cat <<EOF >Dockerfile
FROM gcr.io/distroless/base:debug
WORKDIR /pomerium
COPY pomerium /bin/pomerium
COPY config.yaml /pomerium/config.yaml
ENTRYPOINT [ "/bin/pomerium" ]
CMD ["-config","/pomerium/config.yaml"]
EOF
docker build --tag=pomerium/pomerium:dev .
# save the image so we can load it from docker-compose
docker save --output=/tmp/pomerium-dev.tar pomerium/pomerium:dev
)