mirror of https://github.com/PurpleI2P/i2pd.git
R4SAS
4 years ago
6 changed files with 1 additions and 159 deletions
@ -1,54 +0,0 @@
@@ -1,54 +0,0 @@
|
||||
language: cpp |
||||
cache: |
||||
apt: true |
||||
os: |
||||
- linux |
||||
#- osx |
||||
dist: xenial |
||||
sudo: required |
||||
compiler: |
||||
- g++ |
||||
- clang++ |
||||
env: |
||||
global: |
||||
- MAKEFLAGS="-j 2" |
||||
matrix: |
||||
- BUILD_TYPE=make UPNP=ON MAKE_UPNP=yes |
||||
- BUILD_TYPE=make UPNP=OFF MAKE_UPNP=no |
||||
- BUILD_TYPE=cmake UPNP=ON MAKE_UPNP=yes |
||||
- BUILD_TYPE=cmake UPNP=OFF MAKE_UPNP=no |
||||
matrix: |
||||
exclude: |
||||
- os: osx |
||||
env: BUILD_TYPE=cmake UPNP=ON MAKE_UPNP=yes |
||||
- os: osx |
||||
env: BUILD_TYPE=cmake UPNP=OFF MAKE_UPNP=no |
||||
- os: linux |
||||
compiler: clang++ |
||||
env: BUILD_TYPE=make UPNP=ON MAKE_UPNP=yes |
||||
- os: linux |
||||
compiler: clang++ |
||||
env: BUILD_TYPE=make UPNP=OFF MAKE_UPNP=no |
||||
addons: |
||||
apt: |
||||
packages: |
||||
- build-essential |
||||
- cmake |
||||
- g++ |
||||
- clang |
||||
- libboost-chrono-dev |
||||
- libboost-date-time-dev |
||||
- libboost-filesystem-dev |
||||
- libboost-program-options-dev |
||||
- libboost-system-dev |
||||
- libboost-thread-dev |
||||
- libminiupnpc-dev |
||||
- libssl-dev |
||||
before_install: |
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi |
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libressl miniupnpc ; fi |
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew outdated boost || brew upgrade boost ; fi |
||||
script: |
||||
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$BUILD_TYPE" == "cmake" ]]; then cd build && cmake -DCMAKE_BUILD_TYPE=Release -DWITH_UPNP=${UPNP} && make ; fi |
||||
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$BUILD_TYPE" == "make" ]]; then make USE_UPNP=${MAKE_UPNP} ; fi |
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then make HOMEBREW=1 USE_UPNP=${MAKE_UPNP} ; fi |
@ -1,57 +0,0 @@
@@ -1,57 +0,0 @@
|
||||
version: 2.38.0.{build} |
||||
pull_requests: |
||||
do_not_increment_build_number: true |
||||
branches: |
||||
only: |
||||
- openssl |
||||
skip_tags: true |
||||
os: Visual Studio 2015 |
||||
shallow_clone: true |
||||
clone_depth: 1 |
||||
|
||||
# avoid building 32-bit if 64-bit failed already |
||||
matrix: |
||||
fast_finish: true |
||||
|
||||
environment: |
||||
APPVEYOR_SAVE_CACHE_ON_ERROR: true |
||||
MSYS2_PATH_TYPE: inherit |
||||
CHERE_INVOKING: enabled_from_arguments |
||||
matrix: |
||||
- MSYSTEM: MINGW64 |
||||
- MSYSTEM: MINGW32 |
||||
|
||||
cache: |
||||
- c:\msys64\var\cache\pacman\pkg\ |
||||
|
||||
install: |
||||
# install new signing keyring |
||||
- c:\msys64\usr\bin\bash -lc "curl -O https://mirror.selfnet.de/msys2/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz" |
||||
- c:\msys64\usr\bin\bash -lc "curl -O https://mirror.selfnet.de/msys2/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig" |
||||
- c:\msys64\usr\bin\bash -lc "pacman-key --verify msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig" |
||||
- c:\msys64\usr\bin\bash -lc "pacman --noconfirm -U msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz" |
||||
# remove packages which can break build |
||||
- c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Rns gcc-fortran gcc mingw-w64-{i686,x86_64}-gcc-ada mingw-w64-{i686,x86_64}-gcc-objc" |
||||
# update runtime |
||||
- c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu" |
||||
# Kill bash before next try |
||||
- taskkill /T /F /IM bash.exe /IM gpg.exe /IM gpg-agent.exe | exit /B 0 |
||||
# update packages and install required |
||||
- c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu $MINGW_PACKAGE_PREFIX-boost $MINGW_PACKAGE_PREFIX-miniupnpc" |
||||
|
||||
build_script: |
||||
- c:\msys64\usr\bin\bash -lc "make USE_UPNP=yes DEBUG=no -j3" |
||||
# prepare archive for uploading |
||||
- set "FILELIST=i2pd.exe README.txt contrib/i2pd.conf contrib/tunnels.conf contrib/certificates contrib/tunnels.d" |
||||
- echo This is development build, use it carefully! For running in portable mode, move all files from contrib directory here. > README.txt |
||||
- 7z a -tzip -mx9 -mmt i2pd-%APPVEYOR_BUILD_VERSION%-%APPVEYOR_REPO_COMMIT:~0,7%-mingw-win%MSYSTEM:~-2%.zip %FILELIST% |
||||
|
||||
after_build: |
||||
- c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Sc" |
||||
|
||||
test: off |
||||
|
||||
deploy: off |
||||
|
||||
artifacts: |
||||
- path: i2pd-*.zip |
@ -1,34 +0,0 @@
@@ -1,34 +0,0 @@
|
||||
Howto build & run |
||||
================== |
||||
|
||||
**Build** |
||||
|
||||
Assuming you're in the root directory of the anoncoin source code. |
||||
|
||||
$ `cd build/docker` |
||||
$ `docker -t meeh/i2pd:latest .` |
||||
|
||||
**Run** |
||||
|
||||
To run either the local build, or if not found - fetched prebuild from hub.docker.io, run the following command. |
||||
|
||||
$ `docker run --name anonnode -v /path/to/i2pd/datadir/on/host:/var/lib/i2pd -p 7070:7070 -p 4444:4444 -p 4447:4447 -p 7656:7656 -p 2827:2827 -p 7654:7654 -p 7650:7650 -d meeh/i2pd` |
||||
|
||||
All the ports ( -p HOSTPORT:DOCKERPORT ) is optional. However the command above enable all features (Webconsole, HTTP Proxy, BOB, SAM, i2cp, etc) |
||||
|
||||
The volume ( -v HOSTDIR:DOCKERDIR ) is also optional, but if you don't use it, your config, routerid and private keys will die along with the container. |
||||
|
||||
**Options** |
||||
|
||||
Options are set via docker environment variables. This can be set at run with -e parameters. |
||||
|
||||
* **ENABLE_IPV6** - Enable IPv6 support. Any value can be used - it triggers as long as it's not empty. |
||||
* **LOGLEVEL** - Set the loglevel. |
||||
* **ENABLE_AUTH** - Enable auth for the webconsole. Username and password needs to be set manually in i2pd.conf cause security reasons. |
||||
|
||||
**Logging** |
||||
|
||||
Logging happens to STDOUT as the best practise with docker containers, since infrastructure systems like kubernetes with ELK integration can automatically forward the log to say, kibana or greylog without manual setup. :) |
||||
|
||||
|
||||
|
@ -1,11 +0,0 @@
@@ -1,11 +0,0 @@
|
||||
FROM ubuntu |
||||
|
||||
RUN apt-get update && apt-get install -y libboost-dev libboost-filesystem-dev \ |
||||
libboost-program-options-dev libboost-date-time-dev \ |
||||
libssl-dev git build-essential |
||||
|
||||
RUN git clone https://github.com/PurpleI2P/i2pd.git |
||||
WORKDIR /i2pd |
||||
RUN make |
||||
|
||||
CMD ./i2pd |
Loading…
Reference in new issue