Add option to set latest volare PDK by setting the PDK env var at runtime

This commit is contained in:
Mario Romero 2023-09-27 18:26:03 -03:00
parent 55fcdb8a80
commit 62d751c249
5 changed files with 12 additions and 2 deletions

View File

@ -32,4 +32,4 @@ COPY --chown=designer:designer --chmod=755 scripts/* /home/designer/.scripts
ENV PATH="/home/designer/.scripts:${PATH}"
# Initialize the enviroment keeping container alive
CMD ["sleep", "infinity"]
ENTRYPOINT ["start_desktop"]

View File

@ -35,4 +35,4 @@ COPY --chown=designer:designer include/desktopinit.desktop /home/designer/.confi
# Start VNC & desktop environment
WORKDIR /home/designer
ENTRYPOINT ["startserver"]
ENTRYPOINT ["start_server"]

3
scripts/start_desktop Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
volare_set_latest
sleep infinity

View File

@ -18,5 +18,7 @@ echo "XServer has been found, running desktop environment"
# Run desktop environment (XFCE)
xfce4-session --display=$DISPLAY
volare_set_latest
# Keep container alive
sleep infinity

View File

@ -0,0 +1,5 @@
#!/bin/bash
if [[ -z "${PDK}" ]]; then
PDK_VERSION=$(volare ls-remote --pdk $PDK | sed -n '1 p')
volare enable --pdk $PDK $PDK_VERSION
fi