Skip to content

Commit

Permalink
putting docker files into their own folder (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed Oct 5, 2023
1 parent 8bfcaa5 commit d3a494e
Show file tree
Hide file tree
Showing 14 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/gh_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
# create two copies of the documentaiton
# 1. the frozen version, represented as vX.X in the version switcher
docker build -t micm -f Dockerfile.docs .
docker build -t micm -f docker/Dockerfile.docs .
id=$(docker create micm)
docker cp $id:/build/docs/sphinx tmpdocs
docker rm -v $id
Expand All @@ -62,7 +62,7 @@ jobs:
# 2. stable, represented as vX.X (stable) in the version switcher
# edit conf.py to produce a version string that looks like vX.X (stable)
docker build -t micm -f Dockerfile.docs --build-arg SUFFIX=" (stable)" .
docker build -t micm -f docker/Dockerfile.docs --build-arg SUFFIX=" (stable)" .
id=$(docker create micm)
docker cp $id:/build/docs/sphinx tmpdocs
docker rm -v $id
Expand All @@ -83,7 +83,7 @@ jobs:
!contains(github.ref, env.DEFAULT_BRANCH)
run: |
set -x
docker build -t micm -f Dockerfile.docs .
docker build -t micm -f docker/Dockerfile.docs .
id=$(docker create micm)
docker cp $id:/build/docs/sphinx tmpdocs
docker rm -v $id
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
submodules: recursive

- name: Build Docker image
run: docker build -t micm -f ${{ matrix.dockerfile }} .
run: docker build -t micm -f docker/${{ matrix.dockerfile }} .

- name: Run tests in container
if: matrix.dockerfile != 'Dockerfile.coverage'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ To build the latest pre-release version of MICM, instead run:
```
git clone https://github.com/NCAR/micm.git
cd micm
docker build -t micm .
docker build -t micm -f docker/Dockerfile .
docker run -it micm bash
```

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/source/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Docker Container

Build and run the image::

$ docker build -t micm -f Dockerfile.nvhpc .
$ docker build -t micm -f docker/Dockerfile.nvhpc .
$ docker run --rm -it micm

If you would like, you can ssh into a running docker container and edit the files there.
Expand Down

0 comments on commit d3a494e

Please sign in to comment.