Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
async-mpst-gen-choice
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Felix Stutz
async-mpst-gen-choice
Commits
6bc581ef
Commit
6bc581ef
authored
1 year ago
by
Felix Stutz
Browse files
Options
Downloads
Patches
Plain Diff
Add HOW_TO_ARTIFACT
parent
b7e786a3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+5
-0
5 additions, 0 deletions
Dockerfile
HOW_TO_ARTIFACT.md
+19
-0
19 additions, 0 deletions
HOW_TO_ARTIFACT.md
with
24 additions
and
0 deletions
Dockerfile
0 → 100644
+
5
−
0
View file @
6bc581ef
FROM
python:3.9-slim@sha256:a321a8513911c55888b9c1cc981a5ba646271447a82ece1b62e4a6a8ff1d431b
COPY
. .
RUN
python3
-m
pip
install
-r
tool-cav/requirements.txt
This diff is collapsed.
Click to expand it.
HOW_TO_ARTIFACT.md
0 → 100644
+
19
−
0
View file @
6bc581ef
# How to Create Artifact as Docker Image
This is a brief summary of the steps to produce the artifiact docker image.
1) Create a new directory
`docker-dir`
.
2) Copy the code into
`docker-dir`
in its own directory and rename it to
`too-cav`
.
3) Move the docker file
`Dockerfile`
in
`docker-dir`
.
4) Remove this file
`HOW_TO_ARTIFACT.md`
.
5) In case you ran experiments, remove added directories like
`__pycache__`
or
`venv`
,
evaluation files in
`evaluation_data`
, and generated global types in
`global_types`
.
6) Run the following command to generate the docker image (potentially with
`sudo`
):
```
bash
sudo
docker build
-t
docker-tool-cav
```
7) To save the image, run the following command:
```
bash
docker save docker-tool-cav:latest
>
docker-tool-cav.tar
```
8) If you like, you can compress
`docker-tool-cav.tar`
.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment