Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit e2eaec1

Browse files
authored
Merge pull request #11 from github/template-readme
Update template README to detail what needs to be replaced.
2 parents e1d6b15 + 0ba256c commit e2eaec1

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ FROM docker.pkg.github.com/github/codeql-learninglab-actions/codeql-learninglab-
159159
COPY --chown=codeql:codeql config /home/codeql/config
160160
WORKDIR /home/codeql/config
161161
# Download, unzip and then delete the zip file in one step to reduce image size
162-
RUN wget --quiet <url-for-snapshot-zip> -O snapshot.zip && unzip -qq snapshot.zip && rm -rf snapshot.zip
162+
RUN wget --quiet <url-for-snapshot-zip> -O database.zip && unzip -qq database.zip && rm -rf database.zip
163163
```
164164

165165
Note that we download, unzip and then delete the zip file of the snapshot

courses/cpp/ctf-segv/image/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ FROM docker.pkg.github.com/github/codeql-learninglab-actions/codeql-learninglab-
44
COPY --chown=codeql:codeql config /home/codeql/config
55
WORKDIR /home/codeql/config
66
# Download, unzip and then delete the zip file in one step to reduce image size
7-
RUN wget --quiet https://downloads.lgtm.com/snapshots/cpp/GNU/glibc/bminor_glibc_cpp-srcVersion_333221862ecbebde60dd16e7ca17d26444e62f50-dist_odasa-lgtm-2019-04-08-af06f68-linux64.zip -O snapshot.zip && unzip -qq snapshot.zip && rm -rf snapshot.zip
7+
RUN wget --quiet https://downloads.lgtm.com/snapshots/cpp/GNU/glibc/bminor_glibc_cpp-srcVersion_333221862ecbebde60dd16e7ca17d26444e62f50-dist_odasa-lgtm-2019-04-08-af06f68-linux64.zip -O database.zip && unzip -qq database.zip && rm -rf database.zip

courses/template/README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,17 @@
33
Copy this entire directory,
44
and replace the following:
55

6-
* TODO
6+
* Replace `<owner>`, `<repo>` and `<pkg>` in the `image` property in
7+
[`action.yml`](action.yml) to reference the correct repository
8+
where the docker image will be published,
9+
and with a package name of your choice.
10+
(For courses in this repository,
11+
we use the convention of taking the course path,
12+
and replacing slashes with dashes,
13+
e.g. `courses/cpp/ctf-segv` becomes `courses-cpp-ctf-segv`)
14+
* Replace the zip file URL in [`image/Dockerfile`](image/Dockerfile)
15+
to point to the CodeQL database that will be used in your course.
16+
17+
After this,
18+
update [`answers/`](answers) and [`image/config/`](image/config)
19+
to add your model answers and expected query results as appropriate.

courses/template/image/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ FROM docker.pkg.github.com/github/codeql-learninglab-actions/codeql-learninglab-
44
COPY --chown=codeql:codeql config /home/codeql/config
55
WORKDIR /home/codeql/config
66
# Download, unzip and then delete the zip file in one step to reduce image size
7-
RUN wget --quiet https://downloads.lgtm.com/snapshots/cpp/GNU/glibc/bminor_glibc_cpp-srcVersion_333221862ecbebde60dd16e7ca17d26444e62f50-dist_odasa-lgtm-2019-04-08-af06f68-linux64.zip -O snapshot.zip && unzip -qq snapshot.zip && rm -rf snapshot.zip
7+
RUN wget --quiet https://downloads.lgtm.com/snapshots/cpp/GNU/glibc/bminor_glibc_cpp-srcVersion_333221862ecbebde60dd16e7ca17d26444e62f50-dist_odasa-lgtm-2019-04-08-af06f68-linux64.zip -O database.zip && unzip -qq database.zip && rm -rf database.zip

0 commit comments

Comments
 (0)