File tree 5 files changed +6
-6
lines changed
5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ COPY bin/coprctl /usr/bin/coprctl
5
5
RUN chmod +x /usr/bin/coprctl
6
6
7
7
COPY example/config.yml /root/.config/coprctl/config.yml
8
- VOLUME /root/.config
8
+ VOLUME /root
9
9
10
10
RUN mkdir /workspace
11
11
WORKDIR /workspace
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ COPRCTL_IMAGE="${COPRCTL_IMAGE:-jfhbrook/coprctl}"
4
4
COPRCTL_VERSION=" ${COPRCTL_VERSION:- latest} "
5
5
6
6
exec docker run \
7
- -v " ${HOME} /.config :/root/.config " \
7
+ -v " ${HOME} :/root" \
8
8
-v " $( pwd) :/workspace" \
9
9
-it " ${COPRCTL_IMAGE} :${COPRCTL_VERSION} " copr " $@ "
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ COPRCTL_IMAGE="${COPRCTL_IMAGE:-jfhbrook/coprctl}"
4
4
COPRCTL_VERSION=" ${COPRCTL_VERSION:- latest} "
5
5
6
6
exec docker run \
7
- -v " ${HOME} /.config :/root/.config " \
7
+ -v " ${HOME} :/root" \
8
8
-v " $( pwd) :/workspace" \
9
9
-it " ${COPRCTL_IMAGE} :${COPRCTL_VERSION} " coprctl " $@ "
Original file line number Diff line number Diff line change @@ -32,6 +32,6 @@ print(Path("/workspace") / relative_path)
32
32
' " ${HOST_PATH} " " ${WORKSPACE_PATH} " ) "
33
33
34
34
exec docker run \
35
- -v " ${HOME} /.config :/root/.config " \
35
+ -v " ${HOME} :/root" \
36
36
-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 " $@ "
Original file line number Diff line number Diff line change 12
12
PATH=" $(pwd)/bin:${PATH}" bash --login
13
13
14
14
# Build the Docker image
15
- build :
15
+ build-docker :
16
16
docker build -t ' coprctl:{{ VERSION}} ' .
17
17
docker tag ' coprctl:{{ VERSION}} ' ' coprctl:latest'
18
18
docker tag ' coprctl:{{ VERSION}} ' ' jfhbrook/coprctl:{{ VERSION}} '
You can’t perform that action at this time.
0 commit comments