Skip to content

Instantly share code, notes, and snippets.

View iiewad's full-sized avatar
:shipit:
Focusing

Tomas iiewad

:shipit:
Focusing
View GitHub Profile
@iiewad
iiewad / Dockerfile
Created January 8, 2025 02:05
Because I can't install ruby 2.3.8 version on M1 macbook, So I try to use docker build the dev env.
FROM ruby:2.3
RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list
RUN apt-get update && \
apt install -y --only-upgrade --no-install-recommends ca-certificates debian-archive-keyring && \
apt-get install -y --no-install-recommends \
unzip zip \
libmagick++-dev libmariadb-client-lgpl-dev libpcap-dev libssl-dev nodejs vim htop cron ghostscript && \
rm -rf /var/lib/apt/lists/*
RUN gem install rack -v '~> 1.6' && \
@iiewad
iiewad / old ruby on m1.sh
Created November 15, 2023 08:11 — forked from CaiqueMitsuoka/old ruby on m1.sh
Install old ruby version on M1
# Rbenv thread for old versions after xcode 12+
# https://github.com/rbenv/ruby-build/issues/1489
# PR for openssl 1.0 to support M1
# https://github.com/rbenv/homebrew-tap/pull/2
curl https://raw.githubusercontent.com/rbenv/homebrew-tap/e472b7861b49cc082d1db0f66f265368da107589/Formula/openssl%401.0.rb -o ./[email protected]
brew install [email protected]
brew --prefix [email protected]
brew --prefix readline
commands:
01_install_yarn:
command: "sudo wget https://dl.yarnpkg.com/rpm/yarn.repo -O /etc/yum.repos.d/yarn.repo && curl --silent --location https://rpm.nodesource.com/setup_6.x | sudo bash - && sudo yum install yarn -y"
02_download_nodejs:
command: "curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -"
03_install_nodejs:
command: "yum -y install nodejs"
04_mkdir_webapp_dir:
command: "mkdir /home/webapp"