run_with_podman code cleanup
This commit is contained in:
@@ -67,7 +67,7 @@ exit $?
|
||||
2. You have [Atom](https://atom.io/) and the [build](https://atom.io/packages/build) package installed
|
||||
* I won't pontificate on why I am using Atom and the build package as my example IDE. The podman commands I will highlight in this post will work equally as well using whichever IDE you choose to use in conjunction with its external build commands.
|
||||
3. You are somewhat familiar with .atom-build.yml (or can copypasta)
|
||||
3. You have podman installed
|
||||
4. You have podman installed
|
||||
|
||||
|
||||
### Configuration
|
||||
@@ -233,20 +233,20 @@ elif [[ $MODE == "1" ]]; then
|
||||
-it \
|
||||
--systemd="${SYSTEMD}" \
|
||||
--name "atom-${CLEAN}-persistent" \
|
||||
-v "{FILE_ACTIVE_PATH}:{FILE_ACTIVE_PATH}" \
|
||||
-v "{FILE_ACTIVE_PATH}/${MASK_DIR}" \
|
||||
-w "{FILE_ACTIVE_PATH}" \
|
||||
-v "${FILE_ACTIVE_PATH}:${FILE_ACTIVE_PATH}" \
|
||||
-v "${FILE_ACTIVE_PATH}/${MASK_DIR}" \
|
||||
-w "${FILE_ACTIVE_PATH}" \
|
||||
"${IMAGE}" \
|
||||
/bin/bash -c "chmod 755 {FILE_ACTIVE} && {FILE_ACTIVE} ${OPTIONS}"
|
||||
/bin/bash -c "chmod 755 ${FILE_ACTIVE} && ${FILE_ACTIVE} ${OPTIONS}"
|
||||
else
|
||||
podman run \
|
||||
-it \
|
||||
--systemd="${SYSTEMD}" \
|
||||
--name "atom-${CLEAN}-persistent" \
|
||||
-v "{FILE_ACTIVE_PATH}:{FILE_ACTIVE_PATH}" \
|
||||
-w "{FILE_ACTIVE_PATH}" \
|
||||
-v "${FILE_ACTIVE_PATH}:${FILE_ACTIVE_PATH}" \
|
||||
-w "${FILE_ACTIVE_PATH}" \
|
||||
"${IMAGE}" \
|
||||
/bin/bash -c "chmod 755 {FILE_ACTIVE} && {FILE_ACTIVE} ${OPTIONS}"
|
||||
/bin/bash -c "chmod 755 ${FILE_ACTIVE} && ${FILE_ACTIVE} ${OPTIONS}"
|
||||
fi
|
||||
fi
|
||||
# Recreate persistent container
|
||||
@@ -261,20 +261,20 @@ elif [[ $MODE == "2" ]]; then
|
||||
-it \
|
||||
--systemd="${SYSTEMD}" \
|
||||
--name "atom-${CLEAN}-persistent" \
|
||||
-v "{FILE_ACTIVE_PATH}:{FILE_ACTIVE_PATH}" \
|
||||
-v "{FILE_ACTIVE_PATH}/${MASK_DIR}" \
|
||||
-w "{FILE_ACTIVE_PATH}" \
|
||||
-v "${FILE_ACTIVE_PATH}:${FILE_ACTIVE_PATH}" \
|
||||
-v "${FILE_ACTIVE_PATH}/${MASK_DIR}" \
|
||||
-w "${FILE_ACTIVE_PATH}" \
|
||||
"${IMAGE}" \
|
||||
/bin/bash -c "chmod 755 {FILE_ACTIVE} && {FILE_ACTIVE} ${OPTIONS}"
|
||||
/bin/bash -c "chmod 755 ${FILE_ACTIVE} && ${FILE_ACTIVE} ${OPTIONS}"
|
||||
else
|
||||
podman run \
|
||||
-it \
|
||||
--systemd="${SYSTEMD}" \
|
||||
--name "atom-${CLEAN}-persistent" \
|
||||
-v "{FILE_ACTIVE_PATH}:{FILE_ACTIVE_PATH}" \
|
||||
-w "{FILE_ACTIVE_PATH}" \
|
||||
-v "${FILE_ACTIVE_PATH}:${FILE_ACTIVE_PATH}" \
|
||||
-w "${FILE_ACTIVE_PATH}" \
|
||||
"${IMAGE}" \
|
||||
/bin/bash -c "chmod 755 {FILE_ACTIVE} && {FILE_ACTIVE} ${OPTIONS}"
|
||||
/bin/bash -c "chmod 755 ${FILE_ACTIVE} && ${FILE_ACTIVE} ${OPTIONS}"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user