Skip to content

Instantly share code, notes, and snippets.

View eduardomp's full-sized avatar
🤖
bip bop

Eduardo Medeiros Pereira eduardomp

🤖
bip bop
View GitHub Profile
@eduardomp
eduardomp / Vagrantfile
Last active May 10, 2024 00:33
Vagrantfile - Vagrant + Ubuntu + QEMU provider tested in MacOs M1 ARM64
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "perk/ubuntu-2204-arm64"
config.vm.box_version = "20230416"
config.vm.synced_folder ".", "/vagrant", disabled: true
@eduardomp
eduardomp / Dockerfile
Created April 20, 2021 23:26
Dockerfile for React applications
FROM node:15-alpine AS build
WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
RUN apk add --no-cache --virtual yarn
COPY . /app
RUN yarn install --silent && \
yarn global add react-scripts@4.0.1 --silent && \
yarn run build
# serve the app
@eduardomp
eduardomp / Dockerfile
Created September 28, 2020 16:37
Dockerfile for Vue applications
FROM renovate/yarn:latest as build-stage
LABEL maintainer="Eduardo Medeiros Pereira - edu.medeirospereira@gmail.com"
LABEL description="Dockerfile for Vue applications"
USER root
RUN adduser --disabled-password --gecos '' vue \
&& adduser vue sudo \
&& echo '%sudo ALL=(ALL:ALL) ALL' >> /etc/sudoers
@eduardomp
eduardomp / Dockerfile
Created September 28, 2020 14:42
Dockerfile for Python 3 projects with Poetry
FROM python:3.6.6-alpine3.7
LABEL maintainer="Eduardo Medeiros Pereira - edu.medeirospereira@gmail.com"
LABEL description="Dockerfile for Python 3 applications with Poetry"
ENV PYTHONFAULTHANDLER=1 \
PYTHONUNBUFFERED=1 \
PYTHONHASHSEED=random \
PIP_NO_CACHE_DIR=off \
PIP_DISABLE_PIP_VERSION_CHECK=on \
@eduardomp
eduardomp / Vagrantfile
Last active July 29, 2020 18:58
Vagrantfile - Ubuntu 16.04 LTS with Java 8 (openjdk) , Maven and Nodejs 10.x LTS (Battle Tested)
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.network "forwarded_port", guest: 8080, host: 8080
config.vm.synced_folder "workspace/", "/home/vagrant/workspace"
config.vm.provision "shell", inline: <<-SHELL
#ENVIRONMENT
@eduardomp
eduardomp / Dockerfile
Last active January 3, 2019 12:45
Dockerfile for play 2.6.X applications
FROM ubuntu:18.04
LABEL maintainer="Eduardo Medeiros Pereira - edu.medeirospereira@gmail.com"
LABEL description="Dockerfile for Play Framework 2.6.X applications"
WORKDIR /usr/src/app
COPY . .
ADD https://piccolo.link/sbt-1.2.8.zip /usr/src/app
@eduardomp
eduardomp / Dockerfile
Created December 20, 2018 17:40
Dockerfile - Postgres with custom postgresql.conf
FROM postgres:9.5
LABEL maintainer="Eduardo Medeiros Pereira - edu.medeirospereira@gmail.com"
ENTRYPOINT ["docker-entrypoint.sh"]
COPY postgresql.conf /etc/postgresql/postgresql.conf
EXPOSE 5432
@eduardomp
eduardomp / Vagrantfile
Last active January 23, 2020 11:00
Vagrantfile for Tensorflow and Anaconda
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.box_check_update = false
config.vm.synced_folder "workspace/", "/home/vagrant/workspace"
config.vm.network "public_network"
config.vm.network :forwarded_port, host: 8080, guest: 8080
config.vm.network :forwarded_port, host: 8888, guest: 8888
config.vm.network :forwarded_port, host: 6006, guest: 6006
@eduardomp
eduardomp / Vagrantfile
Last active January 22, 2018 04:17
Minimal tooling and configuration of JHipster environment
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.box_check_update = false
config.vm.synced_folder "workspace/", "/home/vagrant/workspace"
config.vm.network :forwarded_port, host: 8080, guest: 8080
config.vm.network :forwarded_port, host: 8081, guest: 8081
config.vm.network :forwarded_port, host: 9000, guest: 9000
config.ssh.insert_key = true
@eduardomp
eduardomp / Vagrantfile
Created December 22, 2017 14:14
Vue + Flask API development environment
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.network "forwarded_port", guest: 8080, host: 8080
config.vm.synced_folder "workspace/", "/home/ubuntu/workspace"
config.vm.synced_folder "arquivos/", "/home/ubuntu/arquivos"
config.vm.provision "shell", inline: <<-SHELL
echo "atualizando repositorios..."