Instructions for running the ASU Server locally
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 450
- Forks
- 111
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
Does anyone have a resource with some better instructions for hosting the ASU server locally? There are some sparse instructions in the README but they are incomplete and don't work on a fresh Debian host.
Error:
podman-compose version: 1.0.6
['podman', '--version', '']
using podman version: 3.0.1
** excluding: set()
['podman', 'inspect', '-t', 'image', '-f', '{{.Id}}', 'localhost/aparcar/asu:latest']
Error: error inspecting object: unable to find 'localhost/aparcar/asu:latest' in local storage: no such image
podman build -f ./Containerfile -t localhost/aparcar/asu:latest ./
STEP 1: FROM python:3.10-slim
Error: error creating build container: short-name "python:3.10-slim" did not resolve to an alias and no unqualified-search registries are defined in "/etc/containers/registries.conf"
exit code: 125
['podman', 'inspect', '-t', 'image', '-f', '{{.Id}}', 'localhost/aparcar/asu:latest']
Error: error inspecting object: unable to find 'localhost/aparcar/asu:latest' in local storage: no such image
podman build -f ./Containerfile -t localhost/aparcar/asu:latest ./
STEP 1: FROM python:3.10-slim
Error: error creating build container: short-name "python:3.10-slim" did not resolve to an alias and no unqualified-search registries are defined in "/etc/containers/registries.conf"
exit code: 125
['podman', 'inspect', '-t', 'image', '-f', '{{.Id}}', 'localhost/aparcar/asu:latest']
Error: error inspecting object: unable to find 'localhost/aparcar/asu:latest' in local storage: no such image
podman build -f ./Containerfile -t localhost/aparcar/asu:latest ./
STEP 1: FROM python:3.10-slim
Error: error creating build container: short-name "python:3.10-slim" did not resolve to an alias and no unqualified-search registries are defined in "/etc/containers/registries.conf"
exit code: 125
['podman', 'ps', '--filter', 'label=io.podman.compose.project=public', '-a', '--format', '{{ index .Labels "io.podman.compose.config-hash"}}']
podman volume inspect public_podman-sock || podman volume create public_podman-sock
['podman', 'volume', 'inspect', 'public_podman-sock']
['podman', 'network', 'exists', 'public_default']
Error: unrecognized command `podman network exists`
Try 'podman network --help' for more information.
['podman', 'network', 'create', '--label', 'io.podman.compose.project=public', '--label', 'com.docker.compose.project=public', 'public_default']
Error: the network name public_default is already used
Traceback (most recent call last):
File "/home/seb/.local/lib/python3.9/site-packages/podman_compose.py", line 720, in assert_cnt_nets
compose.podman.output([], "network", ["exists", net_name])
File "/home/seb/.local/lib/python3.9/site-packages/podman_compose.py", line 1098, in output
return subprocess.check_output(cmd_ls)
File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['podman', 'network', 'exists', 'public_default']' returned non-zero exit status 125.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/seb/.local/bin/podman-compose", line 8, in <module>
sys.exit(main())
File "/home/seb/.local/lib/python3.9/site-packages/podman_compose.py", line 2941, in main
podman_compose.run()
File "/home/seb/.local/lib/python3.9/site-packages/podman_compose.py", line 1423, in run
cmd(self, args)
File "/home/seb/.local/lib/python3.9/site-packages/podman_compose.py", line 1754, in wrapped
return func(*args, **kw)
File "/home/seb/.local/lib/python3.9/site-packages/podman_compose.py", line 2067, in compose_up
podman_args = container_to_args(compose, cnt, detached=args.detach)
File "/home/seb/.local/lib/python3.9/site-packages/podman_compose.py", line 903, in container_to_args
assert_cnt_nets(compose, cnt)
File "/home/seb/.local/lib/python3.9/site-packages/podman_compose.py", line 761, in assert_cnt_nets
compose.podman.output([], "network", args)
File "/home/seb/.local/lib/python3.9/site-packages/podman_compose.py", line 1098, in output
return subprocess.check_output(cmd_ls)
File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['podman', 'network', 'create', '--label', 'io.podman.compose.project=public', '--label', 'com.docker.compose.project=public', 'public_default']' returned non-zero exit status 125.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the sparse README and Containerfile, then reproduce the reported setup on a fresh Debian host with the stated Podman and podman-compose versions. Document the required configuration and commands so the ASU server can be started locally without the reported image-resolution and network errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devops, documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100