mirror of https://github.com/vitalif/grive2
Compare commits
9 Commits
d03c4a24ce
...
be52cb21a7
Author | SHA1 | Date |
---|---|---|
Vitaliy Filippov | be52cb21a7 | |
Vitaliy Filippov | 648ff8eea1 | |
Vitaliy Filippov | eb82bfe28b | |
Vitaliy Filippov | f9e9fe510d | |
Vitaliy Filippov | ae38035ef4 | |
Christoph Junghans | b788284020 | |
Kilian von Pflugk | cd4665ae1b | |
Jasper Young | 5c8e87ee9a | |
Christoph Junghans | 3cf1c058a3 |
|
@ -1,4 +1,5 @@
|
||||||
.git
|
*
|
||||||
Dockerfile
|
!cmake
|
||||||
.dockerignore
|
!grive
|
||||||
.gitignore
|
!libgrive
|
||||||
|
!CMakeLists.txt
|
||||||
|
|
32
Dockerfile
32
Dockerfile
|
@ -1,27 +1,25 @@
|
||||||
FROM alpine:3.7 as build
|
FROM alpine:3.7 as build
|
||||||
|
|
||||||
RUN apk add git make cmake g++ libgcrypt-dev yajl-dev yajl \
|
RUN apk add make cmake g++ libgcrypt-dev yajl-dev yajl \
|
||||||
boost-dev curl-dev expat-dev cppunit-dev binutils-dev \
|
boost-dev curl-dev expat-dev cppunit-dev binutils-dev \
|
||||||
pkgconfig \
|
pkgconfig
|
||||||
&& git clone https://github.com/vitalif/grive2.git \
|
|
||||||
&& mkdir grive2/build \
|
ADD . /grive2
|
||||||
&& cd grive2/build \
|
|
||||||
|
RUN mkdir /grive2/build \
|
||||||
|
&& cd /grive2/build \
|
||||||
&& cmake .. \
|
&& cmake .. \
|
||||||
&& make -j4 \
|
&& make -j4 install
|
||||||
&& make install \
|
|
||||||
&& cd ../.. \
|
|
||||||
&& rm -rf grive2 \
|
|
||||||
&& mkdir /drive
|
|
||||||
|
|
||||||
FROM alpine:3.7
|
FROM alpine:3.7
|
||||||
COPY --from=build /usr/local/bin/grive /bin/grive
|
|
||||||
ADD https://github.com/Yelp/dumb-init/releases/download/v1.2.1/dumb-init_1.2.1_amd64 /bin/dumb-init
|
RUN apk add yajl libcurl libgcrypt boost-program_options boost-regex libstdc++ boost-system \
|
||||||
RUN chmod 777 /bin/dumb-init /bin/grive \
|
|
||||||
&& mkdir /data \
|
|
||||||
&& apk add yajl-dev curl-dev libgcrypt \
|
|
||||||
boost-program_options boost-regex libstdc++ boost-system boost-dev binutils-dev \
|
|
||||||
&& apk add boost-filesystem --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main
|
&& apk add boost-filesystem --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main
|
||||||
|
|
||||||
|
COPY --from=build /usr/local/bin/grive /bin/grive
|
||||||
|
RUN chmod 777 /bin/grive \
|
||||||
|
&& mkdir /data
|
||||||
|
|
||||||
VOLUME /data
|
VOLUME /data
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
ENTRYPOINT ["dumb-init", "grive"]
|
ENTRYPOINT grive
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
find_library( DL_LIBRARY NAMES dl PATH ${CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES} )
|
|
||||||
find_library( BFD_LIBRARY NAMES bfd PATH ${CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES} )
|
find_library( BFD_LIBRARY NAMES bfd PATH ${CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES} )
|
||||||
|
|
||||||
if ( DL_LIBRARY AND BFD_LIBRARY )
|
if ( BFD_LIBRARY )
|
||||||
set( BFD_FOUND TRUE )
|
set( BFD_FOUND TRUE )
|
||||||
endif (DL_LIBRARY AND BFD_LIBRARY)
|
|
||||||
|
|
||||||
if ( BFD_FOUND )
|
|
||||||
|
|
||||||
message( STATUS "Found libbfd: ${BFD_LIBRARY}")
|
message( STATUS "Found libbfd: ${BFD_LIBRARY}")
|
||||||
|
endif ( BFD_LIBRARY )
|
||||||
endif ( BFD_FOUND )
|
|
||||||
|
|
|
@ -27,6 +27,9 @@ IF(LIBGCRYPTCONFIG_EXECUTABLE)
|
||||||
|
|
||||||
EXEC_PROGRAM(${LIBGCRYPTCONFIG_EXECUTABLE} ARGS --cflags RETURN_VALUE _return_VALUE OUTPUT_VARIABLE LIBGCRYPT_CFLAGS)
|
EXEC_PROGRAM(${LIBGCRYPTCONFIG_EXECUTABLE} ARGS --cflags RETURN_VALUE _return_VALUE OUTPUT_VARIABLE LIBGCRYPT_CFLAGS)
|
||||||
|
|
||||||
|
string(REPLACE "fgrep: warning: fgrep is obsolescent; using grep -F" "" LIBGCRYPT_LIBRARIES "${LIBGCRYPT_LIBRARIES}")
|
||||||
|
string(STRIP "${LIBGCRYPT_LIBRARIES}" LIBGCRYPT_LIBRARIES)
|
||||||
|
|
||||||
IF(${LIBGCRYPT_CFLAGS} MATCHES "\n")
|
IF(${LIBGCRYPT_CFLAGS} MATCHES "\n")
|
||||||
SET(LIBGCRYPT_CFLAGS " ")
|
SET(LIBGCRYPT_CFLAGS " ")
|
||||||
ENDIF(${LIBGCRYPT_CFLAGS} MATCHES "\n")
|
ENDIF(${LIBGCRYPT_CFLAGS} MATCHES "\n")
|
||||||
|
|
|
@ -22,7 +22,7 @@ ENDIF ( CPPUNIT_FOUND )
|
||||||
|
|
||||||
# build bfd classes if libbfd and the backtrace library is found
|
# build bfd classes if libbfd and the backtrace library is found
|
||||||
if ( BFD_FOUND AND Backtrace_FOUND )
|
if ( BFD_FOUND AND Backtrace_FOUND )
|
||||||
set( OPT_LIBS ${DL_LIBRARY} ${BFD_LIBRARY} ${Backtrace_LIBRARY} )
|
set( OPT_LIBS ${BFD_LIBRARY} ${Backtrace_LIBRARY} )
|
||||||
file( GLOB OPT_SRC
|
file( GLOB OPT_SRC
|
||||||
src/bfd/*.cc
|
src/bfd/*.cc
|
||||||
)
|
)
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
#include "util/FileSystem.hh"
|
#include "util/FileSystem.hh"
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <iosfwd>
|
#include <iosfwd>
|
||||||
|
|
Loading…
Reference in New Issue