Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# deps
FROM rockylinux:9.2 AS deps

WORKDIR /app
COPY Makefile .

RUN dnf install -y epel-release
RUN dnf install -y make ansible
RUN make deps


# build env
FROM deps AS build_1
COPY . ./
RUN make environment
18 changes: 16 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ clean-secrets:
rm -rf etc/.secrets

virtualenv:
python3 -m venv .
python3.11 -m venv .

venv: virtualenv

Expand All @@ -23,8 +23,9 @@ pip:

# OS level dependencies
deps:
# note aiohttp won't build yet on python3.12
dnf install -y python3.11-devel openldap-devel
dnf groupinstall -y "Development Tools"
dnf install -y python36-devel openldap-devel

# run this to configure the dev environment
environment: venv pip
Expand All @@ -33,3 +34,16 @@ update-sdf-ansible:
git submodule update --init --recursive

apply: environment get-secrets update-sdf-ansible

# Docker
docker_build:
docker build --platform=linux/amd64 --tag slaclab/sdf-cli .

docker_build_no_cache:
docker build --no-cache --platform=linux/amd64 --tag slaclab/sdf-cli .

docker_run_it: docker_build
docker run --platform=linux/amd64 -it slaclab/sdf-cli bash

docker_push: docker_build
docker push slaclab/sdf-cli
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# requests pkg does not support urllib3 v2.0.0
urllib3==1.26.15
cliff==3.10.1
#yarl
#multidict
Expand Down