persistent history, add podman to memory.md, user webgui
This commit is contained in:
parent
0817d7be67
commit
ce19be2e68
5 changed files with 30 additions and 20 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# Dockerfile
|
||||
# Containerfile
|
||||
# podman image build -q -t debian:podman-trixie -f Containerfile .
|
||||
# podman run -q -it --rm --device /dev/fuse debian:podman-trixie
|
||||
# in development container e.g.
|
||||
|
|
@ -12,19 +12,19 @@ RUN apt-get update && \
|
|||
git && \
|
||||
apt-get upgrade -y
|
||||
|
||||
RUN useradd vscode -s /bin/bash && \
|
||||
echo "vscode:1001:64535" > /etc/subuid && \
|
||||
echo "vscode:1001:64535" > /etc/subgid
|
||||
RUN useradd webgui -s /bin/bash && \
|
||||
echo "webgui:1001:64535" > /etc/subuid && \
|
||||
echo "webgui:1001:64535" > /etc/subgid
|
||||
|
||||
ARG _REPO_URL="https://raw.githubusercontent.com/containers/image_build/refs/heads/main/podman"
|
||||
ADD $_REPO_URL/containers.conf /etc/containers/containers.conf
|
||||
ADD $_REPO_URL/podman-containers.conf /home/vscode/.config/containers/containers.conf
|
||||
ADD $_REPO_URL/podman-containers.conf /home/webgui/.config/containers/containers.conf
|
||||
|
||||
RUN mkdir -p /home/vscode/.local/share/containers && \
|
||||
chown vscode:vscode -R /home/vscode && \
|
||||
RUN mkdir -p /home/webgui/.local/share/containers && \
|
||||
chown webgui:webgui -R /home/webgui && \
|
||||
chmod 0644 /etc/containers/containers.conf
|
||||
|
||||
VOLUME /home/vscode/.local/share/containers
|
||||
VOLUME /home/webgui/.local/share/containers
|
||||
|
||||
# Replace setuid bits by proper file capabilities for uidmap binaries.
|
||||
# See <https://github.com/containers/podman/discussions/19931>.
|
||||
|
|
@ -36,10 +36,10 @@ RUN apt-get install -y libcap2-bin && \
|
|||
|
||||
ENV _CONTAINERS_USERNS_CONFIGURED=""
|
||||
|
||||
#RUN SNIPPET="export PROMPT_COMMAND='history -a' && \
|
||||
# export HISTFILE=/commandhistory/.bash_history" && \
|
||||
# echo "$SNIPPET" >> "/root/.bashrc"
|
||||
RUN SNIPPET="export PROMPT_COMMAND='history -a' && \
|
||||
export HISTFILE=/commandhistory/.bash_history" && \
|
||||
echo "$SNIPPET" >> "/root/.bashrc"
|
||||
|
||||
#USER vscode
|
||||
#WORKDIR /home/vscode
|
||||
#USER webgui
|
||||
#WORKDIR /home/webgui
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue