Last active
March 26, 2020 21:55
-
-
Save emckean/8142928b6d886531cfb119b4cf0c7ca0 to your computer and use it in GitHub Desktop.
dtrees dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use the official image as a parent image | |
FROM ubuntu:18.04 | |
# Run the commands | |
RUN apt-get update | |
RUN apt-get install sudo | |
RUN adduser --disabled-password --gecos '' docker | |
RUN adduser docker sudo | |
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | |
USER docker | |
RUN sudo apt-get update | |
RUN sudo apt-get install wamerican | |
RUN sudo apt-get install make | |
RUN sudo apt install build-essential xz-utils curl -y | |
RUN sudo curl -SL http://releases.llvm.org/9.0.0/clang+llvm-9.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz | sudo tar -xJC . | |
RUN sudo mv clang+llvm-9.0.0-x86_64-linux-gnu-ubuntu-18.04 clang_9.0.0 | |
RUN sudo mv clang_9.0.0 /usr/local | |
RUN export PATH=/usr/local/clang_9.0.0/bin:$PATH | |
RUN export LD_LIBRARY_PATH=/usr/local/clang_9.0.0/lib:$LD_LIBRARY_PATH | |
RUN sudo ldconfig | |
RUN sudo add-apt-repository ppa:mhier/libboost-latest -y | |
RUN sudo apt update | |
RUN sudo apt-get --purge remove libboost-all-dev libboost-dev libboost-doc | |
RUN sudo apt-get install -f | |
RUN sudo apt autoremove | |
RUN sudo dpkg --configure -a | |
RUN sudo apt-get clean | |
RUN sudo apt-get update | |
RUN sudo apt-get install libboost1.70-dev -y | |
RUN sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
RUN sudo apt-get update | |
RUN sudo apt-get install g++-9 -y | |
#you should have git clone https://github.com/questrel/dtree.git | |
COPY ./dtree dtree | |
RUN sudo ls dtree/* | |
RUN sudo bash dtree/test.bash | |
# Inform Docker that the container is listening on the specified port at runtime. | |
EXPOSE 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
here is the output:
Step 32/34 : RUN sudo ls dtree/*
---> Running in aef967943a3b
dtree/CODE_OF_CONDUCT.md
dtree/CONCEPTS.md
dtree/CONTRIBUTING.md
dtree/LICENSE
dtree/QUICKSTART.md
dtree/README.md
dtree/canonical.cpp
dtree/charconv
dtree/doc
dtree/exer.cpp
dtree/makefile
dtree/test.bash
dtree/test.cpp
dtree/common:
array_iterator.h
ecma.h
iocommon.h
ioerror.h
matrix.h
mod_apache.c
stl_extensions.h
xml_document.cache.h
xml_document.h
shared_memory_allocator.h
sql.h
store.h
string.h
tree.h
dtree/radix_map:
Makefile
array_iterator.h
ecma.h
exer.cpp
iocommon.h
ioerror.h
matrix.h
mod_apache.c
radix_map.h
shared_memory_allocator.h
stl_extensions.h
xml_document.cache.h
xml_document.h
dtree/shared_memory_allocator:
Makefile
exer.cpp
exer.d
iocommon.h
make.log
radix_map.h
shared_memory_allocator.h
Removing intermediate container aef967943a3b
---> 0c345080be98
Step 33/34 : RUN sudo bash dtree/test.bash
---> Running in a14be41ebc5c
---> Running in a14be41ebc5c
make: *** No rule to make target 'sql.test.out'. Stop.
make: *** No rule to make target 'canonical.out'. Stop.
rm: cannot remove '.map': No such file or directory
dtree/test.bash: line 8: ./canonical.out: No such file or directory
dtree/test.bash: line 8: ./sql.test.out: No such file or directory
cp: cannot stat 'sql.dat': No such file or directory
cp: cannot stat 'sql.dat.99': No such file or directory
rm: cannot remove '.map': No such file or directory
dtree/test.bash: line 17: ./sql.test.out: No such file or directory
dtree/test.bash: line 15: ./canonical.out: No such file or directory
select ASCII_word,NUMERIC_TO_STRING(letter_product,letter_sum) from word where letter_product*letter_sum <= letter_
product+letter_sum;'
The command '/bin/sh -c sudo bash dtree/test.bash' returned a non-zero code: 127