Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
templates
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tecnalia_robotics-public
templates
Merge requests
!38
Resolve "Add code's devcontainer template as artifact"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Add code's devcontainer template as artifact"
18-add-code-s-devcontainer-template-as-artifact
into
master
Overview
0
Commits
1
Pipelines
5
Changes
5
Merged
Jon Azpiazu
requested to merge
18-add-code-s-devcontainer-template-as-artifact
into
master
5 years ago
Overview
0
Commits
1
Pipelines
5
Changes
5
Expand
Closes
#18 (closed)
Edited
5 years ago
by
Jon Azpiazu
0
0
Merge request reports
Compare
master
version 2
0b329b6a
5 years ago
version 1
8c7f2783
5 years ago
master (base)
and
latest version
latest version
9db277da
1 commit,
5 years ago
version 2
0b329b6a
2 commits,
5 years ago
version 1
8c7f2783
1 commit,
5 years ago
5 files
+
129
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
vscode_devcontainer/.devcontainer/Dockerfile
0 → 100644
+
49
−
0
Options
#-------------------------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
#-------------------------------------------------------------------------------------------------------------
FROM
tecnalia-robotics-docker.artifact.tecnalia.com/flexbotics-base-devel:kinetic
# Avoid warnings by switching to noninteractive
ENV
DEBIAN_FRONTEND=noninteractive
# This Dockerfile adds a non-root 'vscode' user with sudo access. However, for Linux,
# this user's GID/UID must match your local user UID/GID to avoid permission issues
# with bind mounts. Update USER_UID / USER_GID if yours is not 1000. See
# https://aka.ms/vscode-remote/containers/non-root-user for details.
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 iproute2 procps lsb-release curl \
&& apt install -y git openssh-client python-catkin-tools \
#
# 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] Add sudo support for the non-root user
&& apt-get install -y sudo \
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME\
&& chmod 0440 /etc/sudoers.d/$USERNAME \
#
&& rosdep init || true
USER
$USERNAME
RUN
rosdep update
\
&&
mkdir
-p
/home/
${
USERNAME
}
/robot_ws/src/
COPY
.devcontainer/catkin_ws_init.sh /tmp/
# 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=
Loading