Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions deprecated/golang/deprecated.txt

This file was deleted.

7 changes: 0 additions & 7 deletions deprecated/java/deprecated.txt

This file was deleted.

7 changes: 0 additions & 7 deletions deprecated/node/deprecated.txt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,5 @@ ENV GOPATH /home/coder/go
ENV GOBIN $GOPATH/bin
ENV PATH $PATH:$GOBIN

COPY deprecated.txt /etc/motd
RUN echo '[ ! -z "$TERM" ] && cat /etc/motd' >> /etc/bash.bashrc

# Set back to coder user
USER coder
4 changes: 2 additions & 2 deletions deprecated/golang/README.md → images/golang/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Enterprise Golang
# Example Golang

[![DockerPulls](https://img.shields.io/docker/pulls/codercom/enterprise-golang)](https://hub.docker.com/r/codercom/enterprise-golang)

Expand All @@ -7,7 +7,7 @@
Wraps [enterprise-base](../base/README.md) with the basics for Go development.

> **Note:** This image does not contain GoLand. For an example of how to install
> GoLand, see [enterprise-goland](../goland/README.md)
> GoLand, see [enterprise-goland](../../deprecated/goland/README.md)
## How To Use

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,5 @@ RUN mkdir -p /usr/share/gradle /usr/share/gradle/ref \

ENV PATH $PATH:$GRADLE_HOME/bin

COPY deprecated.txt /etc/motd
RUN echo '[ ! -z "$TERM" ] && cat /etc/motd' >> /etc/bash.bashrc

# Set back to coder user
USER coder
4 changes: 2 additions & 2 deletions deprecated/java/README.md → images/java/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Enterprise Java
# Example Java

[![Docker Pulls](https://img.shields.io/docker/pulls/codercom/enterprise-java?label=codercom%2Fenterprise-java)](https://hub.docker.com/r/codercom/enterprise-java)

Expand All @@ -7,7 +7,7 @@
Wraps [enterprise-base](../base/README.md) with the basics for Java development.

> **Note:** This image does not contain IntelliJ. For an example of how to
> install IntelliJ, see [enterprise-intellij](../intellij/README.md)
> install IntelliJ, see [enterprise-intellij](../../deprecated/intellij/README.md)
## How To Use

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,5 @@ RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN DEBIAN_FRONTEND="noninteractive" apt-get update && apt-get install -y yarn

COPY deprecated.txt /etc/motd
RUN echo '[ ! -z "$TERM" ] && cat /etc/motd' >> /etc/bash.bashrc

# Set back to coder user
USER coder
2 changes: 1 addition & 1 deletion deprecated/node/README.md → images/node/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Enterprise Node
# Example Node

[![Docker Pulls](https://img.shields.io/docker/pulls/codercom/enterprise-node?label=codercom%2Fenterprise-node)](https://hub.docker.com/r/codercom/enterprise-node)

Expand Down
71 changes: 71 additions & 0 deletions images/rstudio-server/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
FROM codercom/enterprise-base:ubuntu

USER root

RUN apt update -y

# R-Base
RUN <<EOF
apt install --no-install-recommends gdebi-core nginx software-properties-common dirmngr net-tools -y
add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
apt install --no-install-recommends r-base -y
EOF

ARG ARCH=amd64
ARG BUILD=rstudio-server-2024.04.2-764-${ARCH}.deb

# RStudio Server
RUN <<EOF
curl -fsSL -o /tmp/${BUILD} https://s3.amazonaws.com/rstudio-ide-build/server/jammy/${ARCH}/${BUILD}
echo "y" | gdebi /tmp/${BUILD} -
EOF

# Make directory for rstudio data in home dir
RUN mkdir /home/coder/.rstudio && \
chown -R coder:coder /home/coder/.rstudio

# Allow ownership of mandatory folders/files
RUN chown -R coder:coder \
/home/coder/.rstudio \
/var/run/rstudio-server.pid \
/var/lib/rstudio-server \
/var/run/rstudio-server \
/etc/rstudio

# RStudio Server Config
COPY --chown=coder:coder <<EOF /etc/rstudio/rserver.conf
server-user=coder
server-daemonize=1
server-data-dir=/home/coder/.rstudio/data
server-pid-file=/tmp/rstudio-server.pid
auth-none=1
www-frame-origin=same
www-address=127.0.0.1
www-port=8787
database-config-file=/etc/rstudio/database.conf
EOF

# RStudio Database
COPY --chown=coder:coder <<EOF /etc/rstudio/database.conf
provider=sqlite
directory=/home/coder/.rstudio
EOF

# RStudio DB Launcher
# Launcher config -- Use TLS
# If your coder deployment is NOT on tls, you will want to remove this line.
COPY --chown=coder:coder <<EOF /etc/rstudio/database.conf
enable-ssl=0
EOF

# Extras
RUN <<EOF
locale-gen en_US.UTF-8
apt install zsh fish -y
EOF

# Set back to coder user
USER coder

# Add RStudio to path
ENV PATH=/usr/lib/rstudio-server/bin:${PATH}
7 changes: 7 additions & 0 deletions images/rstudio-server/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Example RStudio Server

[![Docker Pulls](https://img.shields.io/docker/pulls/codercom/rstudio-server?label=codercom%2Frstudio-server)](https://hub.docker.com/r/codercom/rstudio-server)

## Description

Wraps [enterprise-base](../base/README.md) and installs RStudio Server.