Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
thesis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Ylönen
thesis
Commits
860696eb
Commit
860696eb
authored
5 years ago
by
Johannes Ylönen
Browse files
Options
Downloads
Patches
Plain Diff
Added vscode devcontainer support with james-yu.latex-workshop extension.
parent
bc1f1924
No related branches found
No related tags found
No related merge requests found
Pipeline
#22991
passed
5 years ago
Stage: prepare
Stage: build
Stage: test
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.devcontainer/Dockerfile
+40
-0
40 additions, 0 deletions
.devcontainer/Dockerfile
.devcontainer/devcontainer.json
+33
-0
33 additions, 0 deletions
.devcontainer/devcontainer.json
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
with
74 additions
and
0 deletions
.devcontainer/Dockerfile
0 → 100644
+
40
−
0
View file @
860696eb
FROM
konttipoju/tinytex:2019-12g
###
## Prepare for development with VSCode.
###
# Avoid warnings by switching to noninteractive
ENV
DEBIAN_FRONTEND=noninteractive
# Or your actual UID, GID on Linux if not the default 1000
ARG
USERNAME=vscode
ARG
USER_UID=1000
ARG
USER_GID=$USER_UID
# Configure apt and install packages
RUN
apt-get update
\
&&
apt-get
-y
install
--no-install-recommends
apt-utils dialog 2>&1
\
#
# Verify git, process tools, lsb-release (common in install instructions for CLIs) installed
&& apt-get -y install git procps lsb-release \
# Install some tools (not necessary for running the app, but useful)
&& apt-get -y install iproute2 less tmux vim zsh \
#
# Create a non-root user to use if preferred - see https://aka.ms/vscode-remote/containers/non-root-user.
&& groupadd --gid $USER_GID $USERNAME \
&& useradd -s /bin/bash --uid $USER_UID --gid $USER_GID -m $USERNAME \
# [Optional] Uncomment the next three lines to add sudo support
&& apt-get install -y sudo \
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
&& chmod 0440 /etc/sudoers.d/$USERNAME \
#
# Clean up
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
# Switch back to dialog for any ad-hoc use of apt-get
ENV
DEBIAN_FRONTEND=
CMD
["/bin/sh", "-c", "while sleep 1000; do :; done"]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.devcontainer/devcontainer.json
0 → 100644
+
33
−
0
View file @
860696eb
//
For
format
details,
see
https://aka.ms/vscode-remote/devcontainer.json
{
"name"
:
"Thesis"
,
"dockerFile"
:
"Dockerfile"
,
//
Uncomment
the
next
line
if
you
want
to
publish
any
ports.
//
"appPort"
:
[],
"mounts"
:
[
"source=${localWorkspaceFolder}/latex,target=/thesis,type=bind,consistency=cached"
],
//
Default
container
specific
settings.json
values
"settings"
:
{
"terminal.integrated.cwd"
:
"/thesis"
,
"terminal.integrated.shell.linux"
:
"/bin/bash"
,
"terminal.shell"
:
"bash"
},
"workspaceFolder"
:
"/thesis"
,
"shutdownAction"
:
"none"
,
"extensions"
:
[
"james-yu.latex-workshop"
,
"eamodio.gitlens"
,
"Gruntfuggly.todo-tree"
,
"sandcastle.vscode-open"
,
"timonwong.shellcheck"
,
"wayou.vscode-todo-highlight"
]
}
This diff is collapsed.
Click to expand it.
.gitignore
+
1
−
0
View file @
860696eb
...
...
@@ -18,4 +18,5 @@
*.lot
*.lof
*.ilg
*.synctex.gz
_minted-*/
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment