run_with_podman code cleanup
This commit is contained in:
@@ -65,9 +65,9 @@ ls -al
|
|||||||
exit $?
|
exit $?
|
||||||
```
|
```
|
||||||
2. You have [Atom](https://atom.io/) and the [build](https://atom.io/packages/build) package installed
|
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.
|
* 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 are somewhat familiar with .atom-build.yml (or can copypasta)
|
||||||
3. You have podman installed
|
4. You have podman installed
|
||||||
|
|
||||||
|
|
||||||
### Configuration
|
### Configuration
|
||||||
@@ -233,20 +233,20 @@ elif [[ $MODE == "1" ]]; then
|
|||||||
-it \
|
-it \
|
||||||
--systemd="${SYSTEMD}" \
|
--systemd="${SYSTEMD}" \
|
||||||
--name "atom-${CLEAN}-persistent" \
|
--name "atom-${CLEAN}-persistent" \
|
||||||
-v "{FILE_ACTIVE_PATH}:{FILE_ACTIVE_PATH}" \
|
-v "${FILE_ACTIVE_PATH}:${FILE_ACTIVE_PATH}" \
|
||||||
-v "{FILE_ACTIVE_PATH}/${MASK_DIR}" \
|
-v "${FILE_ACTIVE_PATH}/${MASK_DIR}" \
|
||||||
-w "{FILE_ACTIVE_PATH}" \
|
-w "${FILE_ACTIVE_PATH}" \
|
||||||
"${IMAGE}" \
|
"${IMAGE}" \
|
||||||
/bin/bash -c "chmod 755 {FILE_ACTIVE} && {FILE_ACTIVE} ${OPTIONS}"
|
/bin/bash -c "chmod 755 ${FILE_ACTIVE} && ${FILE_ACTIVE} ${OPTIONS}"
|
||||||
else
|
else
|
||||||
podman run \
|
podman run \
|
||||||
-it \
|
-it \
|
||||||
--systemd="${SYSTEMD}" \
|
--systemd="${SYSTEMD}" \
|
||||||
--name "atom-${CLEAN}-persistent" \
|
--name "atom-${CLEAN}-persistent" \
|
||||||
-v "{FILE_ACTIVE_PATH}:{FILE_ACTIVE_PATH}" \
|
-v "${FILE_ACTIVE_PATH}:${FILE_ACTIVE_PATH}" \
|
||||||
-w "{FILE_ACTIVE_PATH}" \
|
-w "${FILE_ACTIVE_PATH}" \
|
||||||
"${IMAGE}" \
|
"${IMAGE}" \
|
||||||
/bin/bash -c "chmod 755 {FILE_ACTIVE} && {FILE_ACTIVE} ${OPTIONS}"
|
/bin/bash -c "chmod 755 ${FILE_ACTIVE} && ${FILE_ACTIVE} ${OPTIONS}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# Recreate persistent container
|
# Recreate persistent container
|
||||||
@@ -261,20 +261,20 @@ elif [[ $MODE == "2" ]]; then
|
|||||||
-it \
|
-it \
|
||||||
--systemd="${SYSTEMD}" \
|
--systemd="${SYSTEMD}" \
|
||||||
--name "atom-${CLEAN}-persistent" \
|
--name "atom-${CLEAN}-persistent" \
|
||||||
-v "{FILE_ACTIVE_PATH}:{FILE_ACTIVE_PATH}" \
|
-v "${FILE_ACTIVE_PATH}:${FILE_ACTIVE_PATH}" \
|
||||||
-v "{FILE_ACTIVE_PATH}/${MASK_DIR}" \
|
-v "${FILE_ACTIVE_PATH}/${MASK_DIR}" \
|
||||||
-w "{FILE_ACTIVE_PATH}" \
|
-w "${FILE_ACTIVE_PATH}" \
|
||||||
"${IMAGE}" \
|
"${IMAGE}" \
|
||||||
/bin/bash -c "chmod 755 {FILE_ACTIVE} && {FILE_ACTIVE} ${OPTIONS}"
|
/bin/bash -c "chmod 755 ${FILE_ACTIVE} && ${FILE_ACTIVE} ${OPTIONS}"
|
||||||
else
|
else
|
||||||
podman run \
|
podman run \
|
||||||
-it \
|
-it \
|
||||||
--systemd="${SYSTEMD}" \
|
--systemd="${SYSTEMD}" \
|
||||||
--name "atom-${CLEAN}-persistent" \
|
--name "atom-${CLEAN}-persistent" \
|
||||||
-v "{FILE_ACTIVE_PATH}:{FILE_ACTIVE_PATH}" \
|
-v "${FILE_ACTIVE_PATH}:${FILE_ACTIVE_PATH}" \
|
||||||
-w "{FILE_ACTIVE_PATH}" \
|
-w "${FILE_ACTIVE_PATH}" \
|
||||||
"${IMAGE}" \
|
"${IMAGE}" \
|
||||||
/bin/bash -c "chmod 755 {FILE_ACTIVE} && {FILE_ACTIVE} ${OPTIONS}"
|
/bin/bash -c "chmod 755 ${FILE_ACTIVE} && ${FILE_ACTIVE} ${OPTIONS}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user