Skip to content

Commit da6c4c4

Browse files
Parth Thakkarthakkarparth007
authored andcommitted
Modify docker setup to allow easy dev
Currently Dockerfile clones the github repo, so if I want to use Docker for development, I can't do that. I'd need to make a change, push to master and then build the Docker image. Instead now the docker container will come up with mapping the code onto /home/ctestuser/openctest This way modifications outside the container will reflect inside, making it easier to test.
1 parent 1ecdbe4 commit da6c4c4

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

core/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ RUN \
3636
useradd -m ctestuser
3737

3838
USER ctestuser
39-
RUN cd /home/ctestuser && \
40-
git clone https://github.com/xlab-uiuc/openctest.git
39+
# RUN cd /home/ctestuser && \
40+
# git clone https://github.com/xlab-uiuc/openctest.git
4141

4242
WORKDIR /home/ctestuser
43+
44+
ENTRYPOINT ["tail", "-f", "/dev/null"]

docker-compose.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: "3.0"
2+
services:
3+
openctest:
4+
build: ./core
5+
volumes:
6+
- .:/home/ctestuser/openctest
7+
container_name: openctest

0 commit comments

Comments
 (0)