https://github.com/jnylen/mide
mise build image
https://github.com/jnylen/mide
Last synced: 4 months ago
JSON representation
mise build image
- Host: GitHub
- URL: https://github.com/jnylen/mide
- Owner: jnylen
- Created: 2024-03-16T04:21:18.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-11-08T15:03:40.000Z (over 1 year ago)
- Last Synced: 2025-02-22T05:44:01.163Z (over 1 year ago)
- Language: Dockerfile
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MIDE - mise development environment
Mise is a Rust-version of asdf that is more user-friendly. It automatically installs plugins that are needed.
MIDE is a docker image that includes mise and additional stuff for building your local development environment.
Based on OCDE.
## Prerequisite
#### MacOS (ARM/AMD64)
1. Docker Desktop (https://docs.docker.com/desktop/mac/install/)
2. Brew (https://brew.sh/)
3. Git (https://git-scm.com/)
4. Visual Studio Code (https://code.visualstudio.com/)
- Remote - Containers extension (https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers)
5. GITHUB_ACCESS_TOKEN environment variable
#### Linux
1. Docker Engine (https://docs.docker.com/engine/install/)
2. Docker Compose (https://docs.docker.com/compose/install/)
3. Git (https://git-scm.com/)
4. Visual Studio Code (https://code.visualstudio.com/)
- Remote - Containers extension (https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers)
5. GITHUB_ACCESS_TOKEN environment variable
#### Windows
1. ...
## Installation and Setup MacOS
#### Docker Desktop
Install Docker Desktop by downloading the appropriate distribution for your system from the link above. After installation verify that you assign enough system resources by opening up the dashboard -> preferences -> resources and assigning the following minimums:
- CPUs: 4
- Memory: 8 GB
- Swap: 512 MB
- Disk image size: 50 GB
#### Brew
Install Brew by running the bash script provided on the link above.
#### Git
Install the latest git version using Brew by running the following command:
```shell
brew install git
```
After installing you can stay up-to-date with new releases by running:
```shell
brew upgrade git
```
Configure Git to use your work profile by setting your name and email:
```git config --global user.name ```
```git config --global user.email ```
#### Visual Studio Code
Install Docker Desktop by downloading the appropriate distribution for your system from the link above. Alternatively you can install it using Brew Casks by running the following:
```shell
brew install --cask visual-studio-code
```
Open VS Code and install the extension `Remote - Containers`
#### GITHUB_ACCESS_TOKEN
Some application container will use your local environment variable GITHUB_ACCESS_TOKEN to access NPM packages, Gems, Docker images, etc from Github Packages and repositories. Add the following inside your shell profile so it is available when needed.
```shell
export GITHUB_ACCESS_TOKEN="replace_this_with_your_token"
```
Create a new token by visiting https://github.com/settings/tokens. Name it e.g. "Access Repo & Packages" and give it the following scopes:
- repo (Full control of private repositories)
- read:packages (Download packages from GitHub Package Registry)
**Important:** Give the token an expiration time of max 6 months.
## Additional Resources
#### Visual Studio Code
1. https://code.visualstudio.com/docs/remote/containers
## Build and push
```
> docker buildx create --use --name multi-arch-builder
> docker buildx build --platform=linux/amd64 --platform=linux/arm64/v8 --push -t jnylen/mide:latest
```