Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 20 #6

Open
thesamprice opened this issue Jun 11, 2023 · 0 comments
Open

Ubuntu 20 #6

thesamprice opened this issue Jun 11, 2023 · 0 comments

Comments

@thesamprice
Copy link

# Based off of https://raw.githubusercontent.com/BallAerospace/cosmos-docker/master/ubuntu18.04/Dockerfile
FROM ubuntu:20.04

ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN apt-get update -y && apt-get install -y \
  cmake \
  freeglut3 \
  freeglut3-dev \
  gcc \
  g++ \
  git \
  iproute2 \
  libffi-dev \
  libgdbm-dev \
  libgstreamer-plugins-base1.0-dev \
  libgstreamer1.0-dev \
  libncurses5-dev \
  libreadline6-dev \
  libssl-dev \
  libyaml-dev \
  net-tools \
  vim \
  zlib1g-dev \
  software-properties-common

RUN add-apt-repository ppa:rock-core/qt4 && \
  apt update && \
  apt-get install -y \
  qt4-default \
  qt4-dev-tools
#   libsmokeqt4-dev - not needed See https://github.com/BallAerospace/COSMOS/issues/1238

## RUBY 2.5 env setup using rvm
RUN gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB && \
  curl -sSL https://get.rvm.io | bash -s stable && \
  /bin/bash -l -c "source /etc/profile.d/rvm.sh && rvm install 2.5"


## Finally install cosmos
ENV COSMOS_VERSION 4.5.2
RUN /bin/bash -l -c "\
  rvm use 2.5 --default && \
  gem install rake --no-document && \
  gem install cosmos -v ${COSMOS_VERSION} --no-document"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant