Skip to content

Commit

Permalink
Fix photon 5 python build and amazon 2023 arm build
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Nov 15, 2024
1 parent 562d775 commit 8d4cc57
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 10 deletions.
16 changes: 8 additions & 8 deletions custom/testing/amazonlinux-2023.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM amazonlinux:2023

COPY golden-pillar-tree golden-pillar-tree
COPY golden-state-tree golden-state-tree
#COPY golden-pillar-tree golden-pillar-tree
#COPY golden-state-tree golden-state-tree

SHELL ["/bin/bash", "-c"]

Expand All @@ -20,12 +20,12 @@ RUN <<EOF
wget https://packages.broadcom.com/artifactory/saltproject-generic/onedir/3007.1/salt-3007.1-onedir-linux-$ARCH.tar.xz
tar xf salt-3007.1-onedir-linux-$ARCH.tar.xz

./salt/salt-call --local --pillar-root=/golden-pillar-tree --file-root=/golden-state-tree state.apply provision

rm -rf salt
rm -rf salt-3007.1-onedir-linux-$ARCH.tar.xz
rm -rf golden-pillar-tree
rm -rf golden-state-tree
# ./salt/salt-call --log-level=debug --local --pillar-root=/golden-pillar-tree --file-root=/golden-state-tree state.apply provision
#
# rm -rf salt
# rm -rf salt-3007.1-onedir-linux-$ARCH.tar.xz
# rm -rf golden-pillar-tree
# rm -rf golden-state-tree
EOF

CMD ["/bin/bash"]
2 changes: 1 addition & 1 deletion custom/testing/entrypoint.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/bin/env /usr/local/bin/python3
"""
Systemd entrypoint hack.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ include:
- config.ulimits
- config.locale
- config.sssd
- config.timezone
- config.dhclient
{#-
- config.timezone
- config.sshd_config
#}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ python_dependencies:
- gcc
- make
- findutils
- binutils
- autoconf
- openssl
- openssl-devel
- libffi-devel
Expand Down
4 changes: 4 additions & 0 deletions custom/testing/golden-state-tree/python/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ configure_python:
cmd.run:
- name: ./configure --enable-optimizations --prefix={{ python_prefix }}
- cwd: /tmp/Python-{{ python_version }}
{%- if grains['os'] == 'VMware Photon OS' %}
- env:
ax_cv_c_float_words_bigendian: "no"
{%- endif %}
- creates: /tmp/Python-{{ python_version }}/Makefile
- require:
- python_source
Expand Down
11 changes: 11 additions & 0 deletions custom/testing/golden-state-tree/python/photon_dependencies.sls
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
{#-
#}

install_rpm:
cmd.run:
- name: tdnf install -y rpm
- if_missing: /usr/bin/rpm
- order: 0

coreutils:
pkg.installed:
- name: coreutils-selinux
- requires:
- install_rpm

python_dependencies:
pkg.latest:
Expand All @@ -26,5 +34,8 @@ python_dependencies:
- expat-devel
- util-linux-devel
- libnsl-devel
- iana-etc
- tzdata
- curl-devel
- require:
- coreutils

0 comments on commit 8d4cc57

Please sign in to comment.