mirror of
https://github.com/Cian-H/I-Form_Server_Node_Deployer.git
synced 2025-12-23 14:42:02 +00:00
Fully working end-to-end locally with validation
This commit is contained in:
17
docker/fuel-ignition.dockerfile
Normal file
17
docker/fuel-ignition.dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM registry.suse.com/bci/nodejs
|
||||
ARG CONTAINER_USERID
|
||||
|
||||
# Install requirements, create usergroup and add user
|
||||
RUN zypper -n install --no-recommends mkisofs python3 make gcc gcc-c++
|
||||
RUN groupadd fuelignition
|
||||
RUN useradd -m -d /fuelignition fuelignition -u ${CONTAINER_USERID}
|
||||
|
||||
COPY --chown=fuelignition . /fuelignition/
|
||||
|
||||
USER fuelignition
|
||||
WORKDIR /fuelignition
|
||||
|
||||
RUN npm install
|
||||
|
||||
# Run our command
|
||||
CMD ["npm", "run", "dev"]
|
||||
12
docker/validate.dockerfile
Normal file
12
docker/validate.dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM quay.io/coreos/ignition-validate:release AS ignition-validate
|
||||
FROM alpine:latest as base
|
||||
|
||||
ARG CWD_MOUNTDIR
|
||||
ENV CWD_MOUNTDIR=$CWD_MOUNTDIR
|
||||
|
||||
COPY --from=ignition-validate . .
|
||||
COPY scripts/installs.sh /installs.sh
|
||||
|
||||
RUN /installs.sh
|
||||
|
||||
CMD $CWD_MOUNTDIR/scripts/validate.sh
|
||||
Reference in New Issue
Block a user