Gitpod: Allow root for priviledged users
This commit is contained in:
parent
af1f10af15
commit
61fffcaec6
@ -1,7 +1,8 @@
|
|||||||
|
privileged: true
|
||||||
|
|
||||||
image:
|
image:
|
||||||
file: gitpod/debian.Dockerfile
|
file: gitpod/debian.Dockerfile
|
||||||
|
|
||||||
|
|
||||||
# FIXME: Change gitpod user on GITPOD_GIT_USER_NAME env value
|
# FIXME: Change gitpod user on GITPOD_GIT_USER_NAME env value
|
||||||
tasks:
|
tasks:
|
||||||
# Does not accept Quotation without '|' ?
|
# Does not accept Quotation without '|' ?
|
||||||
|
@ -1,25 +1,7 @@
|
|||||||
FROM debian:latest
|
FROM debian:latest
|
||||||
|
|
||||||
# # Blocked by https://github.com/gitpod-io/gitpod/issues/39
|
|
||||||
# COPY gitpod/scripts/root-access.sh /usr/bin/root-access
|
|
||||||
# RUN true "5g5fdhsfd" \
|
|
||||||
# && chmod +x /usr/bin/root-access \
|
|
||||||
# && /usr/bin/root-access \
|
|
||||||
# && rm /usr/bin/root-access
|
|
||||||
|
|
||||||
# # Blocked by https://github.com/gitpod-io/gitpod/issues/1265
|
|
||||||
# COPY gitpod/scripts/vm-support.sh /usr/bin/vm-support
|
|
||||||
# RUN true "8g7as2dga7" \
|
|
||||||
# && chmod +x /usr/bin/vm-support \
|
|
||||||
# && /usr/bin/vm-support \
|
|
||||||
# && rm /usr/bin/vm-support
|
|
||||||
|
|
||||||
# FIXME: Outputs `gitpod@ws-ce281d58-997b-44b8-9107-3f2da7feede3:/workspace/gitpod-tests1$` in terminal
|
|
||||||
# FIXME: Add hadolint executable
|
|
||||||
# FIXME: We can use /bin/sh instead of /bin/bash to get minor optimization
|
|
||||||
|
|
||||||
# To avoid bricked workspaces (https://github.com/gitpod-io/gitpod/issues/1171)
|
# To avoid bricked workspaces (https://github.com/gitpod-io/gitpod/issues/1171)
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
@ -36,7 +18,7 @@ RUN useradd \
|
|||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y rustc cargo pkg-config \
|
&& apt-get install -y rustc sudo cargo pkg-config \
|
||||||
&& : "Install hadolint if not available in downstream" \
|
&& : "Install hadolint if not available in downstream" \
|
||||||
&& if ! apt-cache search hadolint | grep -qP "^hadolint -.*"; then { if ! command -v wget >/dev/null; then apt-get install -y wget; fi ;} && wget https://github.com/hadolint/hadolint/releases/download/v1.17.5/hadolint-Linux-x86_64 -O /usr/bin/hadolint && { [ ! -x /usr/bin/hadolint ] && chmod +x /usr/bin/hadolint ;}; elif apt-cache search hadolint | grep -qP "^hadolint -.*"; then apt-get install -y hadolint; fi \
|
&& if ! apt-cache search hadolint | grep -qP "^hadolint -.*"; then { if ! command -v wget >/dev/null; then apt-get install -y wget; fi ;} && wget https://github.com/hadolint/hadolint/releases/download/v1.17.5/hadolint-Linux-x86_64 -O /usr/bin/hadolint && { [ ! -x /usr/bin/hadolint ] && chmod +x /usr/bin/hadolint ;}; elif apt-cache search hadolint | grep -qP "^hadolint -.*"; then apt-get install -y hadolint; fi \
|
||||||
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh \
|
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh \
|
||||||
|
Loading…
Reference in New Issue
Block a user