GIT CHEAT SHEET STAGE & SNAPSHOT Working with snapshots and the Git staging area git status show modified files in working directory, staged for your next commit git add file add a file as it looks now to your next commit (stage) git reset file unstage a file while retaining the changes in working directory git diff. UNIX COMMANDS CHEAT SHEET Command Example Description 1. Ls ls ls -alF Lists files in current directory List in long format 2. Cd cd tempdir cd. Cd dhyatt/web-docs Change directory to tempdir Move back one directory Move into dhyatt's web-docs directory 3. Mkdir mkdir graphics Make a directory called graphics 4. Cp cp file1 web-docs.
docker daemon
Enable buildkit
Add to /etc/docker/daemon.json
:
docker-compose
Devices
Labels
External Network
Dockerfile
Docker Stop Signal
imagemagick
vim
path update
Wget Pdf
download & extract tar.gz
gpg dirmgr explained
purge
list what exposed ports do
cassandra
gosu
debian
copy with proper permissions
su-exec
setgid
npm
gosu
tini
node
redis
docker
google cloud sdk
kubectl
pip
locale
tomcat
https://github.com/Unidata/tomcat-docker/blob/master/Dockerfile
gosu tomcat
Wget Cheat Sheet 2019
Secure repository setup
create application folder structure
Wget Cheat Sheet Pdf
Download and clean up in one layer
Package Manager tricks
Metadata
Make sure to add ARG
statements as late as possible to not invalidate the layer cache needlessly.Each ARG
will be prepended to all subsequent RUN
statements, i.e. building an image with the following Dockerfile docker --pull --tag foo:latest --build-arg GIT_COMMIT=46e24af6 --build-arg USERNAME=flask .
How To Use Wget Windows10
Effectively results in the following calls:
Since the git commit hash will typically change with each build the build will not make good use of Docker’s layer cache
Comments are closed.