Adds a Dockerfile under the docker to package the corso binary. This currently requires the user to build the corso binary (for linux/amd64) in the build image prior to building the docker image. Follow up PRs will introduce a Makefile. Also moves the build image to the build folder and adds a couple of README.md files with instructions. Fixes #218
17 lines
429 B
Bash
Executable File
17 lines
429 B
Bash
Executable File
#! /bin/bash
|
|
|
|
# Runs the dev docker image with the current user and mounts the source code
|
|
# directory in the container at the proper go path.
|
|
# NOTE: The container is ephemeral and destroyed after it is exited (but changes
|
|
# in the repo's code directory will be available to the host).
|
|
|
|
source paths.sh
|
|
|
|
docker run \
|
|
--rm \
|
|
-it \
|
|
-v "$REPO_CODE":"$GOLANG_REPO_PATH" \
|
|
-w "$GOLANG_REPO_PATH" \
|
|
"$DEV_TAG" \
|
|
/bin/bash
|