README update.
This commit is contained in:
parent
436cbb2328
commit
ffcbb8e9de
1 changed files with 30 additions and 3 deletions
31
README.md
31
README.md
|
|
@ -9,10 +9,35 @@ My plan is to switch from Docker to native Linux Containers at some time but I a
|
||||||
## Get the code
|
## Get the code
|
||||||
|
|
||||||
git clone https://git.xw3.org/hanez/rusty
|
git clone https://git.xw3.org/hanez/rusty
|
||||||
or
|
# or
|
||||||
git clone git@git.xw3.org:hanez/rusty.git
|
git clone git@git.xw3.org:hanez/rusty.git (needs an account on git.xw3.org)
|
||||||
cd rusty
|
cd rusty
|
||||||
|
|
||||||
|
## Prepare environment
|
||||||
|
|
||||||
|
mkdir -p home/$USER
|
||||||
|
chown $USER:$USER home/$USER
|
||||||
|
su
|
||||||
|
# or
|
||||||
|
sudo su
|
||||||
|
chown root:root home
|
||||||
|
mkdir root
|
||||||
|
chown root:root root
|
||||||
|
|
||||||
|
## Configure your environment (Optional)
|
||||||
|
|
||||||
|
Optionally you can configure your $HOME directories. I do this by pulling my $HOME config from my Git server. E.g.:
|
||||||
|
|
||||||
|
cd home/hanez
|
||||||
|
git clone git@git.xw3.org:hanez/home.git
|
||||||
|
cd ../..
|
||||||
|
su
|
||||||
|
# or
|
||||||
|
sudo su
|
||||||
|
cd root
|
||||||
|
git clone git@git.xw3.org:hanez/home.git
|
||||||
|
cd ..
|
||||||
|
|
||||||
## Using docker compose
|
## Using docker compose
|
||||||
|
|
||||||
docker compose build
|
docker compose build
|
||||||
|
|
@ -21,6 +46,8 @@ My plan is to switch from Docker to native Linux Containers at some time but I a
|
||||||
|
|
||||||
## Using the Dockerfile only (less comfortable and without shared directories)
|
## Using the Dockerfile only (less comfortable and without shared directories)
|
||||||
|
|
||||||
|
I recommend not to do it this way! You have been warned!
|
||||||
|
|
||||||
docker build -t rusty .
|
docker build -t rusty .
|
||||||
docker run -it --entrypoint /bin/bash rusty
|
docker run -it --entrypoint /bin/bash rusty
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue