Closed ericonr closed 1 year ago
EDIT: my mistake, I haven't built https://github.com/cnpem/epics-in-docker/pull/4 base image
getting a build error:
mauricio.donatti@s-gie01-l:~/projects/sinap/sinap-timing-epics-ioc$ COMMIT_ID=$(git rev-parse --short HEAD) docker compose build
[+] Building 3.5s (11/15)
=> [internal] load .dockerignore 0.3s
=> => transferring context: 2B 0.0s
=> [internal] load build definition from Dockerfile 0.4s
=> => transferring dockerfile: 788B 0.0s
=> [internal] load metadata for ghcr.io/cnpem/lnls-debian-11-epics-7:latest 0.4s
=> [internal] load metadata for docker.io/library/debian:11.7-slim 1.0s
=> [stage-1 1/5] FROM docker.io/library/debian:11.7-slim@sha256:924df86f8aad741a0134b2de7d8e70c5c6863f839caadef62609c1be1340daf5 0.0s
=> [internal] load build context 0.2s
=> => transferring context: 15.36kB 0.0s
=> [build_stage 1/5] FROM ghcr.io/cnpem/lnls-debian-11-epics-7:latest@sha256:ef73167bde992b7990a0a2baadf709e02e306ae1e7be7946da038003398189fd 0.0s
=> CACHED [stage-1 2/5] RUN apt update -y && apt install -y --no-install-recommends busybox netcat-openbsd procserv && apt clean && rm -rf /var/lib/apt/lists/* 0.0s
=> CACHED [build_stage 2/5] WORKDIR /opt/sinap-timing-epics-ioc 0.0s
=> CACHED [build_stage 3/5] COPY . . 0.0s
=> ERROR [build_stage 4/5] RUN echo STATIC_BUILD=YES >> configure/CONFIG_SITE.local && cp /opt/epics/RELEASE configure/RELEASE 1.8s
------
> [build_stage 4/5] RUN echo STATIC_BUILD=YES >> configure/CONFIG_SITE.local && cp /opt/epics/RELEASE configure/RELEASE:
#0 0.879 cp: cannot stat '/opt/epics/RELEASE': No such file or directory
------
failed to solve: process "/bin/sh -c echo STATIC_BUILD=YES >> configure/CONFIG_SITE.local && cp /opt/epics/RELEASE configure/RELEASE" did not complete successfully: exit code: 1
This is a TODO task for epics-in-docker: installation of arbitrary build time and runtime dependencies
I will try and add this functionality soon!
This uses https://github.com/cnpem/epics-in-docker/pull/4 , so we should merge that first.
For comparison: