Skip to content

Commit

Permalink
Make cicd use the ARAX Dockerfile #2411
Browse files Browse the repository at this point in the history
  • Loading branch information
sundareswarpullela committed Nov 15, 2024
1 parent 8e80dd6 commit 2667136
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
run: sudo docker rmi $(sudo docker images -q)

- name: Build docker image
run: sudo docker build --no-cache=true --rm -t rtx:test DockerBuild/ -f DockerBuild/Merged-Dockerfile
run: sudo docker build --no-cache=true --rm -t rtx:test DockerBuild/ -f DockerBuild/Dockerfile

- name: Run docker container
run: sudo docker run -d -it --name rtx_test -v /mnt/data/orangeboard/databases:/mnt/data/orangeboard/databases -v /mnt/config/config_secrets.json:/mnt/data/orangeboard/production/RTX/code/config_secrets.json rtx:test
Expand Down
5 changes: 1 addition & 4 deletions DockerBuild/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,13 @@ RUN chmod -R 700 /home/rt/.ssh
RUN mkdir -p /mnt/data/orangeboard/production
RUN chown -R rt.rt /mnt/data/orangeboard/production
RUN su rt && cd /mnt/data/orangeboard/production && git clone https://github.com/RTXteam/RTX.git
# 08/12/2022 NCATS change
RUN su rt && cd /mnt/data/orangeboard/production/RTX && git checkout ${BUILD_BRANCH}
RUN chown -R rt.rt /mnt/data/orangeboard/production/RTX

# install apache2 and copy config file
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -yq apache2
COPY 000-default.conf /etc/apache2/sites-available/000-default.conf
RUN cd /var/www && mv html html-orig && ln -s /mnt/data/orangeboard/production/RTX/code/UI/interactive html
RUN cd /var/www && a2enmod proxy && a2enmod proxy_html && a2enmod proxy_http && a2enmod rewrite && a2enmod headers
RUN a2enmod remoteip
RUN a2enconf remoteip
COPY remoteip.conf /etc/apache2/conf-available/remoteip.conf
RUN a2enconf remoteip
RUN cd /var/www && /usr/sbin/apachectl configtest
Expand Down

0 comments on commit 2667136

Please sign in to comment.