Skip to content

Instantly share code, notes, and snippets.

@tetkuz
Created June 9, 2018 09:32
Show Gist options
  • Save tetkuz/0e60831de6474e264ccd6c0e961148ed to your computer and use it in GitHub Desktop.
Save tetkuz/0e60831de6474e264ccd6c0e961148ed to your computer and use it in GitHub Desktop.
Dockerfile for build ARDrone SDK
FROM ubuntu:bionic
ENV REPO_CMD_DIR "/usr/local/bin"
ENV GIT_USER_NAME "Your Name"
ENV GIT_USER_EMAIL "[email protected]"
# Install packages for build Parrot SDKs
RUN apt-get update -y && apt-get upgrade -y
RUN apt-get install -y \
locales \
curl \
git \
build-essential \
autoconf \
libtool \
python \
python3 \
zlib1g-dev \
libavahi-client-dev \
libavcodec-dev \
libavformat-dev \
libswscale-dev \
libncurses5-dev \
mplayer
# Install `repo` command
RUN curl https://storage.googleapis.com/git-repo-downloads/repo > "${REPO_CMD_DIR}/repo" && chmod a+x "${REPO_CMD_DIR}/repo"
# Set locales
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# -------------------------
# Change user
RUN useradd drone && mkdir /home/drone && chown -R drone:drone /home/drone
RUN adduser drone staff
USER drone
WORKDIR /home/drone/
# Initializing a Repo client
RUN git config --global user.name "${GIT_USER_NAME}" && git config --global user.email "${GIT_USER_EMAIL}"
# Pull sources
RUN mkdir parrot && cd parrot && repo init -u https://github.com/Parrot-Developers/arsdk_manifests.git -m release.xml && repo sync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment