Add option to set latest volare PDK by setting the PDK env var at runtime
This commit is contained in:
parent
55fcdb8a80
commit
62d751c249
@ -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"]
|
||||
|
@ -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
3
scripts/start_desktop
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
volare_set_latest
|
||||
sleep infinity
|
@ -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
|
5
scripts/volare_set_latest
Normal file
5
scripts/volare_set_latest
Normal 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
|
Loading…
Reference in New Issue
Block a user