Skip to content
Snippets Groups Projects
Verified Commit 517a6d47 authored by Tobias Hangleiter's avatar Tobias Hangleiter
Browse files

Move docker stuff to top-level

parent db788745
No related branches found
No related tags found
1 merge request!60Improve responsiveness during acquisition
Pipeline #1622197 waiting for manual action
File moved
File moved
......@@ -86,5 +86,44 @@ or to check if everything works for a clean install (requires hatch to be instal
python -m hatch run tests:run
```
### Docker
0. Make sure docker is installed and running:
1. `pamac install docker docker-buildx`
2. `(sudo) docker buildx install`
2. `(sudo) systemctl status docker`
Example output:
```sh
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; preset: disabled)
Active: active (running) since Tue 2025-02-11 20:09:55 CET; 1 week 1 day ago
Invocation: 609d5a409daf4e99b7b3b8da9305776d
TriggeredBy: ● docker.socket
Docs: https://docs.docker.com
Main PID: 54128 (dockerd)
Tasks: 22
Memory: 38.8M (peak: 1.2G, swap: 21.3M, swap peak: 23.9M)
CPU: 1min 2.133s
CGroup: /system.slice/docker.service
└─54128 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
```
1. Build the docker image:
```sh
(sudo) docker build -t pyspeck-dev .
```
2. Run the image...
1. ... either running the tests and exiting:
```sh
(sudo) docker run --rm pyspeck-dev
```
2. ... or entering an interactive console:
```sh
(sudo) docker run --rm -it pyspeck-dev /bin/bash
```
## Releases
Releases on Gitlab, PyPI, and Zenodo are automatically created and pushed whenever a commit is tagged matching [CalVer](https://calver.org/) in the form `vYYYY.MM.MICRO` or `vYYYY.0M.MICRO`.
Docker Instructions
=
0. Make sure docker is installed and running:
1. `pamac install docker docker-buildx`
2. `(sudo) docker buildx install`
2. `(sudo) systemctl status docker`
Example output:
```sh
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; preset: disabled)
Active: active (running) since Tue 2025-02-11 20:09:55 CET; 1 week 1 day ago
Invocation: 609d5a409daf4e99b7b3b8da9305776d
TriggeredBy: ● docker.socket
Docs: https://docs.docker.com
Main PID: 54128 (dockerd)
Tasks: 22
Memory: 38.8M (peak: 1.2G, swap: 21.3M, swap peak: 23.9M)
CPU: 1min 2.133s
CGroup: /system.slice/docker.service
└─54128 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
```
1. Build the docker image:
```sh
(sudo) docker build -t pyspeck-dev .
```
2. Run the image...
1. ... either running the tests and exiting:
```sh
(sudo) docker run --rm pyspeck-dev
```
2. ... or entering an interactive console:
```sh
(sudo) docker run --rm -it pyspeck-dev /bin/bash
```
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment