Skip to content

Instantly share code, notes, and snippets.

@nanusdad
Last active October 12, 2022 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nanusdad/7bc716479afeeb2c2b0d52335ba35d38 to your computer and use it in GitHub Desktop.
Save nanusdad/7bc716479afeeb2c2b0d52335ba35d38 to your computer and use it in GitHub Desktop.
Getting started with Meteor on Alpine Linux
  1. Install Alpine Linux Virtual ISO
wget https://dl-cdn.alpinelinux.org/alpine/v3.16/releases/x86_64/alpine-virt-3.16.2-x86_64.iso
# Get the version you need at https://alpinelinux.org/downloads/
  1. Make sure the environment variable for the proxy server is set correctly
export HTTP_PROXY=http://user:pass@http://proxy_server:proxy_port
  1. Install Alpine Linux - Meta package for build base and other required packages (as root)
apk add build-base
apk add zlib
apk add perl
apk add linux-headers
apk add musl-dev 
  1. Install OpenSSL
wget https://www.openssl.org/source/openssl-1.1.1q.tar.gz
tar xfvz openssl-1.1.1q.tar.gz
cd openssl-1.1.1q
./config --prefix=/usr/local --openssldir=/usr/local/ssl
make
make install        # sudo required
  1. Install bzip2
wget https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz
tar xvzf bzip2-1.0.8.tar.gz
cd bzip2-1.0.8
make                            # might need to edit Makefile and -fPIC to CFLAGS
make -f Makefile-libbz2_so      
make install PREFIX=/usr/local  # /usr/local by default, sudo required 
  1. Install Python 3.8 (required for Node 13)
wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz
tar xvfz
cd ../Python-3.8.0/
LDFLAGS="${LDFLAGS} -Wl,-rpath=/usr/local/lib" ./configure --with-openssl=/usr/local --prefix=/usr/local
make
make install # sudo required

# uncomment ZLIB and SSL lines in the Modules/Setup might be required
  1. Install Node v14 (required for Meteor 2.7.3)
wget https://nodejs.org/download/release/v13.14.0/node-v13.14.0.tar.gz
tar xfvz node-v13.14.0.tar.gz
cd node-v14.20.1
./configure
make -j4
make install        # sudo required
  1. Install curl and required compatibility libraries for glibc (as root)
apk add curl 
apk add libc6-compat
apk add gcompat
apk add sudo
  1. Install Meteor
curl https://install.meteor.com/ | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment