Compare commits

...

10 Commits

Author SHA1 Message Date
Restyled.io c05c920cd1 Restyled by whitespace 2020-06-05 01:50:39 +00:00
Restyled.io f25cf15f9d Restyled by prettier-markdown 2020-06-05 01:50:38 +00:00
Jacob Hrbek 9dd6acbbd7 change password on gitpod instead of bothering with contribution to gitpod 2020-06-05 01:50:26 +00:00
Jacob Hrbek 5ae9dd95ca added syntax for issue reproduction using org-mode on gitpod 2020-06-05 01:42:44 +00:00
Jacob Hrbek b1f9e6934f Disable root password, because @jankeromnes is wasting your time by not merging contribs~ 2020-06-05 01:34:01 +00:00
Jacob Hrbek ab8248995d
Update debian.Dockerfile 2020-06-05 03:19:41 +02:00
Jacob Hrbek f473b74468 sd 2020-06-05 01:16:26 +00:00
Jacob Hrbek fc1ea95b97
Update .gitpod.yml 2020-06-05 02:58:05 +02:00
Jacob Hrbek 8c7ae77170 disable blockers 2020-06-05 00:43:36 +00:00
Jacob Hrbek 75fa3e643e init 2020-05-21 17:15:34 +00:00
4 changed files with 50 additions and 34 deletions

View File

@ -1,6 +1,8 @@
image:
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
tasks:
@ -30,4 +32,5 @@ vscode:
- matklad.rust-analyzer@0.1.20200217:zozmBmOg1N91pRISIsYXBg==
- exiasr.hadolint@0.3.0:/FkAW3eTb+z9O7VZAyAa0w==
- 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==

7
docs-next/README.md Normal file
View File

@ -0,0 +1,7 @@
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
View File

@ -0,0 +1,13 @@
#+TITLE: Gitpod test TODO list
* TODO: TEST
#+begin_src ditaa :file ditaa-simpleboxes.png
+---------+
| |
| Foo |
| |
+----+----+---+
|Bar |Baz |
| | |
+----+--------+
#+end_src

View File

@ -1,50 +1,43 @@
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)
ARG DEBIAN_FRONTEND=noninteractive
ARG DEBIAN_FRONTEND="noninteractive"
USER root
ENV LANG=en_US.UTF-8
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
ENV LANG="en_US.UTF-8"
ENV LC_ALL="C"
# Install dependencies
RUN apt-get update \
&& apt-get install -y rustc cargo pkg-config \
&& : "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/*
RUN true \
&& apt-get update \
&& apt-get install -y \
rustc \
cargo \
pkg-config \
# "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
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' \
"ix() { curl -F 'f:1=<-' ix.io 2>/dev/null ;}" \
>> /etc/bash.bashrc; fi