mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
feat(project): introduce toolkit for containerized dev (#3863)
* feat(project): introduce toolkit for containerized dev * feat(project): clean up localserver shell cmd * feat(project): add install of yarn deps to grunt * feat(project): update gruntfile.js * Introduce an ARG statement for the GO_VERSION Co-authored-by: Anthony Lapenna <lapenna.anthony@gmail.com>
This commit is contained in:
parent
0b6dbec305
commit
7bd3d6e44a
4 changed files with 560 additions and 30 deletions
39
build/linux/toolkit.Dockerfile
Normal file
39
build/linux/toolkit.Dockerfile
Normal file
|
@ -0,0 +1,39 @@
|
|||
FROM ubuntu
|
||||
|
||||
# Expose port for the Portainer UI
|
||||
EXPOSE 9000
|
||||
|
||||
WORKDIR /src/portainer
|
||||
|
||||
# Set TERM as noninteractive to suppress debconf errors
|
||||
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
|
||||
|
||||
# Set default go version
|
||||
ARG GO_VERSION=go1.13.11.linux-amd64
|
||||
|
||||
# Install packages
|
||||
RUN apt-get update --fix-missing && apt-get install -qq \
|
||||
dialog \
|
||||
apt-utils \
|
||||
curl \
|
||||
build-essential \
|
||||
nodejs \
|
||||
git \
|
||||
wget
|
||||
|
||||
# Install Yarn
|
||||
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
|
||||
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
|
||||
&& apt-get update && apt-get -y install yarn
|
||||
|
||||
# Install Golang
|
||||
RUN cd /tmp \
|
||||
&& wget -q https://dl.google.com/go/${GO_VERSION}.tar.gz \
|
||||
&& tar -xf ${GO_VERSION}.tar.gz \
|
||||
&& mv go /usr/local
|
||||
|
||||
# Configure Go
|
||||
ENV PATH "$PATH:/usr/local/go/bin"
|
||||
|
||||
# Confirm installation
|
||||
RUN go version && node -v && yarn -v
|
Loading…
Add table
Add a link
Reference in a new issue