Skip to content

Commit

Permalink
added everything
Browse files Browse the repository at this point in the history
  • Loading branch information
ahughesuol committed Aug 5, 2024
1 parent eb18cf6 commit 6d841e2
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 75 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
id: meta
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
with:
images: ghcr.io/socstech/MODULE # THIS LINE MUST BE EDITED FOR NEW MODULES
images: ghcr.io/socstech/cmp2020 # THIS LINE MUST BE EDITED FOR NEW MODULES


# Build and push Docker image with Buildx (don't push on PR)
Expand All @@ -77,12 +77,12 @@ jobs:
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
with:
context: .
file: ./MODULE FOLDER/.devcontainer/Dockerfile # THIS LINE MUST BE EDITED FOR NEW MODULES
file: ./CMP2020 Artificial Intelligence/.devcontainer/Dockerfile # THIS LINE MUST BE EDITED FOR NEW MODULES
push: ${{ github.event_name != 'pull_request' }}
# THIS LINE MUST BE EDITED FOR NEW MODULES
tags: |
${{ steps.meta.outputs.tags }}
ghcr.io/socstech/MODULE:latest
ghcr.io/socstech/cmp2020:latest
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
Expand Down
15 changes: 15 additions & 0 deletions CMP2020 Artificial Intelligence/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM ubuntu:latest

RUN apt upgrade && apt update

RUN apt -y install python3 swi-prolog cmake curl build-essential
RUN apt -y install python3-pip

RUN curl -d "action=AttachFile&do=get&target=fast-downward-23.06.tar.gz" -o fast-downward-23.06.tar.gz https://www.fast-downward.org/Releases/23.06 &&\
tar -xvzf fast-downward-23.06.tar.gz &&\
cd fast-downward-23.06 &&\
./build.py

RUN pip install --break-system-packages mesa
RUN pip install --break-system-packages scikit-learn scipy matplotlib numpy seaborn
RUN pip install --break-system-packages ipykernel
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "MODULE",
"name": "Artificial Intelligence",

"image": "ghcr.io/socstech/MODULE:latest",
"image": "ghcr.io/socstech/cmp2020:latest",

//"build": { "dockerfile": "Dockerfile" },

Expand Down
4 changes: 0 additions & 4 deletions MODULE/.devcontainer/Dockerfile

This file was deleted.

61 changes: 0 additions & 61 deletions MODULE/test.ipynb

This file was deleted.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# MODULE TITLE
This repository houses the devcontainer and docker image for the MODULE module at the University of Lincoln.
# CMP2020 Artificial Intelligence
This repository houses the devcontainer and docker image for the Artificial Intelligence module at the University of Lincoln.
## What is Docker?
Docker is a platform which allows developers to create and share containers.

Expand Down Expand Up @@ -28,13 +28,13 @@ These prerequisites are the same for every Computer Science module using Docker

1. Clone this repository to your computer by clicking the green 'Code' button, and clicking 'Download ZIP'.
2. Extract the downloaded Zip file.
3. Inside the extracted folder is a folder entitled 'MODULE FOLDER' which contains the .devcontainer folder. Move 'MODULE FOLDER' to wherever you like, this will be your working directory for this module.
3. Inside the extracted folder is a folder entitled 'CMP2020 Artificial Intelligence' which contains the .devcontainer folder. Move 'CMP2020 Artificial Intelligence' to wherever you like, this will be your working directory for this module.
4. Make sure Docker Desktop is running. You can minimise the window.
5. Open VS Code, go to File -> Open Folder, and select your 'MODULE FOLDER' folder.
5. Open VS Code, go to File -> Open Folder, and select your 'CMP2020 Artificial Intelligence' folder.
6. Click the 'Reopen in container' pop up in the bottom right corner of your VS Code window. If you do not see this pop up, press F1, and type 'Reopen in Container', and click on the 'Dev Containers: Reopen in Container' command.
7. The Docker image will now be downloaded, and the container will be started. You can click 'show log' in the bottom right corner to see what is going on.
8. Your docker container is now running! Within this VS Code window, you can now run workshop or assignment material exactly the same as in the computing labs.
9. If we ever push an update to the container, you will need to go to Docker Desktop -> Images, find ghcr.io/socstech/MODULE, click the ... button, and click pull. This will pull the most recent version of the docker container. There should be Blackboard announcements letting you know if you ever need to do this, but it is good to do this step every time before you want to use the container.
9. If we ever push an update to the container, you will need to go to Docker Desktop -> Images, find ghcr.io/socstech/cmp2020, click the ... button, and click pull. This will pull the most recent version of the docker container. There should be Blackboard announcements letting you know if you ever need to do this, but it is good to do this step every time before you want to use the container.

### Troubleshooting

Expand Down

0 comments on commit 6d841e2

Please sign in to comment.