-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile-base
49 lines (43 loc) · 2.03 KB
/
Dockerfile-base
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM ubuntu:xenial
MAINTAINER zikalino
RUN apt-get update
RUN apt-get install -y git curl gnupg ruby
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get install -y nodejs
RUN npm -g install autorest
RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
RUN mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
RUN sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
RUN apt-get update
RUN apt-get install -y apt-transport-https libcurl3 libicu55
RUN apt-get install -y dotnet-runtime-2.0.5
RUN apt-get install -y dotnet-sdk-2.1.4
RUN apt install -y node-typescript; npm i -g typescript
#ADD autorest.cli /autorest.cli
#ADD magic-modules /magic-modules
#ADD terraform/run.sh /run.sh
#RUN cd /autorest.cli; npm install
#install ruby 2.6.0
RUN apt update
RUN apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev
#RUN apt install libgdbm5 libgdbm-dev
# Install rbenv and ruby-build
RUN git clone https://github.com/sstephenson/rbenv.git /root/.rbenv
RUN git clone https://github.com/sstephenson/ruby-build.git /root/.rbenv/plugins/ruby-build
RUN /root/.rbenv/plugins/ruby-build/install.sh
ENV PATH /root/.rbenv/bin:$PATH
RUN echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh # or /etc/profile
RUN echo 'eval "$(rbenv init -)"' >> /root/.bashrc
RUN type rbenv
RUN rbenv install -l
RUN rbenv install 2.6.0
RUN rbenv global 2.6.0
RUN ruby -v
RUN gem install bundler:2.0.1
#RUN cd /magic-modules; bundler
#RUN apt-get install -y software-properties-common build-essential
#RUN gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
#RUN curl -L https://get.rvm.io | bash -s stable --ruby
#RUN /bin/bash -c "source /usr/local/rvm/scripts/rvm; rvm install 2.6.0; rvm use 2.6.0; rvm rubygems latest;"
#RUN apt-get update
#RUN /bin/bash -l -c "gem install bundler"