make environment accessible everywhere its needed

This commit is contained in:
Jackson Delahunt 2019-01-18 10:56:10 +11:00
parent 98821826ff
commit d72c8cb5a4
4 changed files with 14 additions and 6 deletions

View file

@ -97,10 +97,6 @@ RUN vcsh clone https://github.com/sabrehagen/dotfiles-alacritty && \
vcsh clone https://github.com/sabrehagen/dotfiles-code && \
vcsh clone https://github.com/sabrehagen/dotfiles-scripts
# Install yarn utilities
RUN yarn global add \
clipboard-cli
# Add program configurations
COPY config/tmuxinator $HOME/.config/tmuxinator
COPY config/zsh/.zshenv $HOME/.zshenv.desktop

View file

@ -4,8 +4,13 @@ if [ $USER != "root" ]; then
exit 1
fi
REPO_ROOT=$(dirname $(realpath $0))/..
# Export development environment shell configuration
export $(sh $REPO_ROOT/scripts/environment.sh)
# Host user configuration
HOST_USER=jackson
HOST_USER=$DESKTOP_ENVIRONMENT_USER
HOST_USER_ID=1000
HOST_HOME=/$HOST_USER/home

View file

@ -1,10 +1,12 @@
# Desktop environment container user
DESKTOP_ENVIRONMENT_USER=jackson
DESKTOP_ENVIRONMENT_HOME=/$DESKTOP_ENVIRONMENT_USER/home
DESKTOP_ENVIRONMENT_REGISTRY=sabrehagen
# Desktop environment configuration
echo DESKTOP_ENVIRONMENT_HOME=$DESKTOP_ENVIRONMENT_HOME
echo DESKTOP_ENVIRONMENT_USER=$DESKTOP_ENVIRONMENT_USER
echo DESKTOP_ENVIRONMENT_REGISTRY=$DESKTOP_ENVIRONMENT_REGISTRY
# Desktop environment cache volumes
echo DESKTOP_ENVIRONMENT_CACHE_CHROME=$DESKTOP_ENVIRONMENT_HOME/.cache/google-chrome

View file

@ -1 +1,6 @@
docker push sabrehagen/desktop-environment:latest
REPO_ROOT=$(dirname $(realpath $0))/..
# Export development environment shell configuration
export $(sh $REPO_ROOT/scripts/environment.sh)
docker push $DESKTOP_ENVIRONMENT_REGISTRY/desktop-environment:latest