Skip to content

Commit

Permalink
Add python venv
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Nov 10, 2024
1 parent e828cc0 commit 66d369d
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 1 deletion.
1 change: 1 addition & 0 deletions custom/testing/golden-state-tree/os/ubuntu/pkgs/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ include:
- pkgs.patch
- pkgs.python3
- pkgs.python3-pip
- pkgs.python3-venv
- pkgs.rng-tools
- pkgs.rsync
- pkgs.sed
Expand Down
5 changes: 5 additions & 0 deletions custom/testing/golden-state-tree/pkgs/python3-venv.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{%- set pkg_name = 'python3-venv' %}

python3-venv:
pkg.installed:
- name: {{ pkg_name }}
3 changes: 3 additions & 0 deletions custom/testing/golden-state-tree/python/init.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@



30 changes: 30 additions & 0 deletions custom/testing/golden-state-tree/python/map.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{% set python = salt['grains.filter_by']({
'Arch': {
'pkgs': [
],
},
'Debian': {
'pkgs': [
],
},
'OpenBSD': {
'pkgs': [
],
},
'RedHat': {
'pkgs': [
],
},
'Suse': {
'pkgs': [
],
},
'FreeBSD': {
'pkgs': [
],
},
'Gentoo': {
'pkgs': [
],
},
}, merge=salt['pillar.get']('python:lookup')) %}
2 changes: 1 addition & 1 deletion custom/testing/systemd-ubuntu-22.04.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN apt update -y \
&& echo 'tzdata tzdata/Areas select America' | debconf-set-selections \
&& echo 'tzdata tzdata/Zones/America select Phoenix' | debconf-set-selections \
&& DEBIAN_FRONTEND="noninteractive" apt install -y \
tree tar wget xz-utils apt-utils systemd python3 python3-pip git
tree tar wget xz-utils apt-utils systemd python3 python3-pip python3-venvgit

COPY 01_nodoc /etc/dpkg/dpkg.cfg.d/01_nodoc
COPY entrypoint.py entrypoint.py
Expand Down

0 comments on commit 66d369d

Please sign in to comment.