https://github.com/zicklag/docker-dev-environments
https://github.com/zicklag/docker-dev-environments
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/zicklag/docker-dev-environments
- Owner: zicklag
- Created: 2020-08-17T20:05:24.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-17T22:12:11.000Z (over 5 years ago)
- Last Synced: 2024-12-29T16:38:36.879Z (about 1 year ago)
- Language: Dockerfile
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Dev Environments
This repo contains Docker images and helpers for running development environments using Docker. I'm currently messing around with using Docker for my [Tauri](https://tauri.studio) development environment. I'm not root on my machine so this works really well with [Rootless Docker](https://docs.docker.com/engine/security/rootless/).
## Scripts
I symlink these into my PATH from this repo.
### `docker-env` Script
The `docker-env` script runs a docker image that you specify in privileged mode with, all your environment variables set, your whole home dir mounted and your workdir set to your current \$PWD. This means you can essentially just start a container environment in your current directory where you have the same home dir and environment, but a different system environment. You will look like root in the container and you can rut apt install and stuff, but you won't actually be root and when you exit the container everything will be owned by your username again ( assuming you are running rootless Docker ).
```bash
# Run this and now you're root on ubuntu:18.04, but in your home directory and environment variables
docker-env ubuntu:18.04
```
### `docker-build` & `docker-run` Scripts
These scripts are convenience shims that just set your proxy settings before building or running containers, but you must use `docker-run` instead of `docker run` and `docker-build` instead of `docker build`.
## Proxy Cert
I'm also behind an HTTPS proxy with SSL Bump so I have my proxy cert in here. You won't want to use that.