Compare commits
8 Commits
master
...
docummenta
Author | SHA1 | Date | |
---|---|---|---|
9dd6acbbd7 | |||
5ae9dd95ca | |||
b1f9e6934f | |||
|
ab8248995d | ||
f473b74468 | |||
|
fc1ea95b97 | ||
8c7ae77170 | |||
75fa3e643e |
@ -1,6 +1,8 @@
|
|||||||
image:
|
image:
|
||||||
file: gitpod/debian.Dockerfile
|
file: gitpod/debian.Dockerfile
|
||||||
|
|
||||||
|
# Used to get root in gitpod for whitelisted users
|
||||||
|
privileged: true
|
||||||
|
|
||||||
# FIXME: Change gitpod user on GITPOD_GIT_USER_NAME env value
|
# FIXME: Change gitpod user on GITPOD_GIT_USER_NAME env value
|
||||||
tasks:
|
tasks:
|
||||||
@ -30,4 +32,5 @@ vscode:
|
|||||||
- matklad.rust-analyzer@0.1.20200217:zozmBmOg1N91pRISIsYXBg==
|
- matklad.rust-analyzer@0.1.20200217:zozmBmOg1N91pRISIsYXBg==
|
||||||
- exiasr.hadolint@0.3.0:/FkAW3eTb+z9O7VZAyAa0w==
|
- exiasr.hadolint@0.3.0:/FkAW3eTb+z9O7VZAyAa0w==
|
||||||
- DavidAnson.vscode-markdownlint@0.34.0:l4DL7iPpo7DdhfUHIUtcuQ==
|
- DavidAnson.vscode-markdownlint@0.34.0:l4DL7iPpo7DdhfUHIUtcuQ==
|
||||||
- yzhang.markdown-all-in-one@2.7.0:5+DmuGcePw8L9PtfgOAAHg==
|
- yzhang.markdown-all-in-one@2.7.0:5+DmuGcePw8L9PtfgOAAHg==
|
||||||
|
- tootone.org-mode@0.5.0:nMzU+vF2VnQcpTnwzwBKWg==
|
||||||
|
3
docs-next/README.md
Normal file
3
docs-next/README.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
This is an experimetal directory designed to be used with org-mode extension (https://marketplace.visualstudio.com/items?itemName=tootone.org-mode) which is according to proof-of-concept http://ehneilsen.net/notebook/orgExamples/org-examples.htm capable of providing the required documentation.
|
||||||
|
|
||||||
|
Current tests conducted on vscode assuming it being supported by gitpod
|
13
docs-next/test.org
Normal file
13
docs-next/test.org
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#+TITLE: Gitpod test TODO list
|
||||||
|
* TODO: TEST
|
||||||
|
|
||||||
|
#+begin_src ditaa :file ditaa-simpleboxes.png
|
||||||
|
+---------+
|
||||||
|
| |
|
||||||
|
| Foo |
|
||||||
|
| |
|
||||||
|
+----+----+---+
|
||||||
|
|Bar |Baz |
|
||||||
|
| | |
|
||||||
|
+----+--------+
|
||||||
|
#+end_src
|
@ -1,50 +1,43 @@
|
|||||||
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: Outputs `gitpod@ws-ce281d58-997b-44b8-9107-3f2da7feede3:/workspace/gitpod-tests1$` in terminal
|
||||||
# FIXME: Add hadolint executable
|
# FIXME: Add hadolint executable
|
||||||
# FIXME: We can use /bin/sh instead of /bin/bash to get minor optimization
|
# 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
|
ARG DEBIAN_FRONTEND="noninteractive"
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
ENV LANG=en_US.UTF-8
|
ENV LANG="en_US.UTF-8"
|
||||||
ENV LC_ALL=C
|
ENV LC_ALL="C"
|
||||||
|
|
||||||
# Add 'gitpod' user
|
|
||||||
RUN useradd \
|
|
||||||
--uid 33333 \
|
|
||||||
--create-home --home-dir /home/gitpod \
|
|
||||||
--shell /bin/bash \
|
|
||||||
--password gitpod \
|
|
||||||
gitpod || exit 1
|
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN apt-get update \
|
RUN true \
|
||||||
&& apt-get install -y rustc cargo pkg-config \
|
&& apt-get update \
|
||||||
&& : "Install hadolint if not available in downstream" \
|
&& apt-get install -y \
|
||||||
&& 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 \
|
rustc \
|
||||||
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh \
|
cargo \
|
||||||
&& apt-get autoremove -y \
|
pkg-config \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
# "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 \
|
||||||
|
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh \
|
||||||
|
&& apt-get autoremove -y \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Install sudo
|
||||||
|
# FIXME-GITPOD(Krey): Disable cache for this so that it can be applied depending on priviledge in .gitpod.yml
|
||||||
|
RUN true \
|
||||||
|
&& apt-get update -q \
|
||||||
|
&& apt-get install -qy \
|
||||||
|
sudo \
|
||||||
|
&& apt-get autoremove -y \
|
||||||
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
|
&& printf '%s\n' "gitpod:gitpod" | chpasswd
|
||||||
|
|
||||||
# Add custom functions
|
# Add custom functions
|
||||||
RUN if ! grep -qF 'ix()' /etc/bash.bashrc; then printf '%s\n' \
|
RUN true \
|
||||||
|
&& if ! grep -qF 'ix()' /etc/bash.bashrc; then printf '%s\n' \
|
||||||
'# Custom' \
|
'# Custom' \
|
||||||
"ix() { curl -F 'f:1=<-' ix.io 2>/dev/null ;}" \
|
"ix() { curl -F 'f:1=<-' ix.io 2>/dev/null ;}" \
|
||||||
>> /etc/bash.bashrc; fi
|
>> /etc/bash.bashrc; fi
|
||||||
|
Loading…
Reference in New Issue
Block a user