Home Dev Container: Guia Rápido
Post
Cancelar

Dev Container: Guia Rápido

Os guias rápidos são resumos feitos por mim de alguma ferramenta. É importante conhecer a ferramenta para poder entender os guias rápidos.

Preparando o ambiente para o Jekyll

.devcontainer/devcontainer.json

1
2
3
4
5
6
7
8
9
{
    "name": "blog",
	"build": {
		"dockerfile": "Dockerfile",
		"context": ".."
	},
    "remoteUser": "vinicius",
    "postCreateCommand": "gem install bundler jekyll && bundle"
}

.devcontainer/Dockerfile

1
2
FROM ruby:3.1.2
RUN adduser --disabled-password --gecos "" --shell /bin/bash vinicius

Preparando o ambiente para o Spring Boot

.devcontainer/devcontainer.json

1
2
3
4
5
6
7
8
9
{
	"name": "projetojava",
	"build": {
		"dockerfile": "Dockerfile",
		"context": ".."
	},

	"remoteUser": "vinicius"
}

.devcontainer/Dockerfile

1
2
3
4
5
6
7
FROM ubuntu

RUN apt-get update
RUN apt-get install openjdk-17-jdk -y
RUN apt-get install maven -y

RUN adduser --disabled-password --gecos "" --shell /bin/bash vinicius
Esta postagem está licenciada sob CC BY 4.0 pelo autor.