-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathDockerfile
39 lines (31 loc) · 1.62 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM --platform=linux/x86_64 ghcr.io/everest/build-kit-alpine:latest
ARG EVEREST_VERSION=2024.3.0-rc1
ENV EVEREST_VERSION=${EVEREST_VERSION}
COPY install.sh ./
# Cloning the repo now and copying files over
RUN git clone https://github.com/EVerest/everest-core.git \
&& cd everest-core \
&& git checkout ${EVEREST_VERSION} \
&& cd .. \
&& mkdir -p /ext/scripts \
&& mv install.sh /ext/scripts/install.sh \
&& mv everest-core /ext/source \
&& cp /ext/source/.ci/build-kit/compile.sh /ext/scripts \
&& /entrypoint.sh run-script compile \
# Don't run the test-and-install script since it deletes the build directory!
&& /entrypoint.sh run-script install
#Add lightweight python server to serve ocpp logs formatted as html files
RUN for file in /workspace/build/run-scripts/run-sil*; do \
echo "python3 -m http.server 9000 --directory /tmp/everest_ocpp_logs &" > temp_file.sh && \
cat "$file" >> temp_file.sh && \
mv temp_file.sh "$file" && \
chmod +x "$file"; \
done
# Copy over the custom config *after* compilation and installation
COPY config-docker.json ./dist/share/everest/modules/OCPP/config-docker.json
COPY config.json ./dist/share/everest/modules/OCPP201/config.json
COPY device_model_storage_maeve_sp1.db ./dist/share/everest/modules/OCPP201/device_model_storage.db
# TODO: This should be removed once added to everest-core
COPY ./tests/startup_tests.py /ext/source/tests/core_tests/startup_tests.py
COPY run-test.sh /ext/source/tests/run-test.sh
LABEL org.opencontainers.image.source=https://github.com/everest/everest-demo