Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery
/
devops
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4284c2b3
authored
Dec 12, 2017
by
Amir Aharon
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
dev-cpp base image
parent
bd811635
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
0 deletions
docker/dev-c++/Dockerfile
docker/dev-c++/scripts/cmake-build.sh
docker/dev-c++/Dockerfile
0 → 100644
View file @
4284c2b3
# FROM gcc:4.9
# LABEL maintainer="amir.aharon@ipgallery.com"
# WORKDIR /project
# RUN echo "deb http://ftp.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list \
# && apt-get update && apt-get -t jessie-backports install -y --no-install-recommends \
# gdb cmake \
# && apt-get clean \
# && rm -rf /var/lib/apt/lists/* /etc/apt/sources.list.d/jessie-backports.list
FROM
ubuntu:trusty
LABEL
maintainer="amir.aharon@ipgallery.com"
VOLUME
"/project"
WORKDIR
"/project"
RUN
apt-get update
RUN
apt-get install
-y
software-properties-common python-software-properties
RUN
add-apt-repository ppa:ubuntu-toolchain-r/test
RUN
apt-get update
# RUN apt-get dist-upgrade -y
RUN
apt-get install gcc-4.9 g++-4.9 cmake gdb gdbserver wget
-y
&&
\
apt-get clean autoclean
&&
\
apt-get autoremove
-y
&&
\
rm
-rf
/var/lib/apt/lists/
*
# wget -O /tmp/conan.deb -L https://github.com/conan-io/conan/releases/download/0.25.1/conan-ubuntu-64_0_25_1.deb && \
# dpkg -i /tmp/conan.deb
RUN
update-alternatives
--install
/usr/bin/gcc gcc /usr/bin/gcc-4.9 999
\
&&
update-alternatives
--install
/usr/bin/g++ g++ /usr/bin/g++-4.9 999
\
&&
update-alternatives
--install
/usr/bin/cc cc /usr/bin/gcc-4.9 999
\
&&
update-alternatives
--install
/usr/bin/c++ c++ /usr/bin/g++-4.9 999
ADD
./scripts/cmake-build.sh /build.sh
RUN
chmod +x /build.sh
RUN
useradd
-ms
/bin/bash develop
RUN
echo
"develop ALL=(ALL:ALL) ALL"
>>
/etc/sudoers
EXPOSE
2000
USER
develop
VOLUME
"/home/develop/project"
WORKDIR
"/home/develop/project"
#ENTRYPOINT exec /build.sh
\ No newline at end of file
docker/dev-c++/scripts/cmake-build.sh
0 → 100644
View file @
4284c2b3
#!/bin/bash
mkdir
-p
/project/build
cd
/project/build
cmake
"
$@
"
..
cmake
--build
.
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment