Skip to content

Commit 16c86cd

Browse files
committed
Mount entire homedir
1 parent 9f0b00a commit 16c86cd

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

coprctl/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ COPY bin/coprctl /usr/bin/coprctl
55
RUN chmod +x /usr/bin/coprctl
66

77
COPY example/config.yml /root/.config/coprctl/config.yml
8-
VOLUME /root/.config
8+
VOLUME /root
99

1010
RUN mkdir /workspace
1111
WORKDIR /workspace

coprctl/bin/copr-docker

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ COPRCTL_IMAGE="${COPRCTL_IMAGE:-jfhbrook/coprctl}"
44
COPRCTL_VERSION="${COPRCTL_VERSION:-latest}"
55

66
exec docker run \
7-
-v "${HOME}/.config:/root/.config" \
7+
-v "${HOME}:/root" \
88
-v "$(pwd):/workspace" \
99
-it "${COPRCTL_IMAGE}:${COPRCTL_VERSION}" copr "$@"

coprctl/bin/coprctl-docker

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ COPRCTL_IMAGE="${COPRCTL_IMAGE:-jfhbrook/coprctl}"
44
COPRCTL_VERSION="${COPRCTL_VERSION:-latest}"
55

66
exec docker run \
7-
-v "${HOME}/.config:/root/.config" \
7+
-v "${HOME}:/root" \
88
-v "$(pwd):/workspace" \
99
-it "${COPRCTL_IMAGE}:${COPRCTL_VERSION}" coprctl "$@"

coprctl/bin/tito-docker

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ print(Path("/workspace") / relative_path)
3232
' "${HOST_PATH}" "${WORKSPACE_PATH}")"
3333

3434
exec docker run \
35-
-v "${HOME}/.config:/root/.config" \
35+
-v "${HOME}:/root" \
3636
-v "$(pwd):/workspace" \
37-
-it "${COPRCTL_IMAGE}:${COPRCTL_VERSION}" bash -c "cd '${PATH_IN_WORKSPACE}'"' && tito "$@"' tito "$@"
37+
-it "${COPRCTL_IMAGE}:${COPRCTL_VERSION}" bash -c "cd '${CONTAINER_PATH}'"' && tito "$@"' tito "$@"

coprctl/justfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ shell:
1212
PATH="$(pwd)/bin:${PATH}" bash --login
1313

1414
# Build the Docker image
15-
build:
15+
build-docker:
1616
docker build -t 'coprctl:{{VERSION}}' .
1717
docker tag 'coprctl:{{VERSION}}' 'coprctl:latest'
1818
docker tag 'coprctl:{{VERSION}}' 'jfhbrook/coprctl:{{VERSION}}'

0 commit comments

Comments
 (0)