* update to node version 16 * Remove canvas compiled node objects * use f35 testing image as builder/base * Update production builder base image to use Fedora 35 I missed this (it's not immediately obvious that there are 2 base images declared in this file, one called builder, one called production, this seems like it could be refactored to lift that out (give it a name, a cmd, and do nothing else) `as base` perhaps, while keeping separate install processes for testing- and pr-/production images. * Add libpq dependency in production We need this (if not the -devel header file, at least the library) to start pg_ext.so I think this might have been working because of the --cache-from options when building in the build container script? * Update .gitpod.dockerfile * Add temporary cleanup for upgrade to bin/setup This has the undesirable effect of requiring a yarn reinstall. It would be better if there were a smart check to confirm the version of the canvas.node file matched the node version or did not (so we only do this as needed, rather than on every setup invocation until this is removed from the code). * Use check-files rather than force when rebuilding canvas Optimal situation would be a `rebuild` command in yarn (I believe npm has this option) to recompile canvas (all that's needed) rather than fetch, install, and build. Co-authored-by: Michael Kohl <me@citizen428.net>
26 lines
779 B
Docker
26 lines
779 B
Docker
FROM gitpod/workspace-postgres
|
|
|
|
# Install Ruby
|
|
ENV RUBY_VERSION=3.0.2
|
|
|
|
# Install the GitHub CLI
|
|
RUN brew install gh
|
|
|
|
# Taken from https://www.gitpod.io/docs/languages/ruby
|
|
RUN echo "rvm_gems_path=/home/gitpod/.rvm" > ~/.rvmrc
|
|
RUN bash -lc "rvm install ruby-$RUBY_VERSION && rvm use ruby-$RUBY_VERSION --default"
|
|
RUN echo "rvm_gems_path=/workspace/.rvm" > ~/.rvmrc
|
|
|
|
# Install Node and Yarn
|
|
ENV NODE_VERSION=16.13.1
|
|
RUN bash -c ". .nvm/nvm.sh && \
|
|
nvm install ${NODE_VERSION} && \
|
|
nvm alias default ${NODE_VERSION} && \
|
|
npm install -g yarn"
|
|
ENV PATH=/home/gitpod/.nvm/versions/node/v${NODE_VERSION}/bin:$PATH
|
|
|
|
# Install Redis.
|
|
RUN sudo apt-get update \
|
|
&& sudo apt-get install -y \
|
|
redis-server \
|
|
&& sudo rm -rf /var/lib/apt/lists/*
|