-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
farscapian
committed
Mar 27, 2020
1 parent
f201e59
commit ef56dff
Showing
227 changed files
with
52,352 additions
and
202 deletions.
There are no files selected for viewing
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
ARG BASE_IMAGE | ||
|
||
FROM ${BASE_IMAGE} | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y wait-for-it git iproute2 curl dnsutils wait-for-it iputils-ping iproute2 duplicity ca-certificates net-tools \ | ||
&& apt-get install -y \ | ||
wait-for-it \ | ||
apt-transport-https \ | ||
git \ | ||
iproute2 \ | ||
curl \ | ||
dnsutils \ | ||
iputils-ping \ | ||
iproute2 \ | ||
ca-certificates \ | ||
net-tools \ | ||
&& rm -rf /var/lib/apt/lists/* |
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
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM alpine:3.11 | ||
|
||
#Base settings | ||
ENV HOME /root | ||
|
||
COPY requirements.txt /root/requirements.txt | ||
|
||
#Install ZeroNet | ||
RUN apk --update --no-cache --no-progress add python3 python3-dev gcc libffi-dev musl-dev make tor openssl \ | ||
&& pip3 install -r /root/requirements.txt \ | ||
&& apk del python3-dev gcc libffi-dev musl-dev make \ | ||
&& echo "ControlPort 9051" >> /etc/tor/torrc \ | ||
&& echo "CookieAuthentication 1" >> /etc/tor/torrc | ||
|
||
RUN python3 -V \ | ||
&& python3 -m pip list \ | ||
&& tor --version \ | ||
&& openssl version | ||
|
||
#Add Zeronet source | ||
COPY . /root | ||
VOLUME /root/data | ||
|
||
#Control if Tor proxy is started | ||
ENV ENABLE_TOR false | ||
|
||
WORKDIR /root | ||
|
||
#Set upstart command | ||
CMD (! ${ENABLE_TOR} || tor&) && python3 zeronet.py --ui_ip 0.0.0.0 --fileserver_port 26552 | ||
|
||
#Expose ports | ||
EXPOSE 43110 26552 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
set -Eeuox pipefail | ||
cd "$(dirname "$0")" | ||
|
||
source ./env | ||
|
||
# this stores cached jekyll data that is pulled from the | ||
# internet the first time an image is created. | ||
if ! docker volume list | grep -q "$BUILDCACHE_DOCKERVOL"; then | ||
docker volume create "$BUILDCACHE_DOCKERVOL" | ||
fi | ||
|
||
if docker image list | grep -q "$BCM_DOCKER_BASE_TAG"; then | ||
docker image pull "$BCM_DOCKER_BASE_TAG" | ||
fi | ||
|
||
docker tag "$BCM_DOCKER_BASE_TAG" "jekyll:$SITE_NAME" | ||
|
||
docker run --rm -it \ | ||
-v "$BUILDCACHE_DOCKERVOL":/usr/local/bundle \ | ||
-v "$SITE_PATH:/srv/jekyll" \ | ||
"jekyll:$SITE_NAME" jekyll build --trace |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
export SITE_NAME="bcmweb" | ||
export SITE_PATH="$(pwd)/jekyll_site" | ||
export NGINX_IMAGE="nginx:latest" | ||
export BUILDCACHE_DOCKERVOL="$SITE_NAME-buildcache" | ||
export BCM_DOCKER_BASE_TAG="jekyll/jekyll" | ||
export DOMAIN_NAME="127.0.0.1" | ||
export EXTERNAL_PORT="28953" | ||
export SERVICE_ENDPOINT="$DOMAIN_NAME:$EXTERNAL_PORT" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
<style type="text/css" media="screen"> | ||
.container { | ||
margin: 10px auto; | ||
max-width: 600px; | ||
text-align: center; | ||
} | ||
h1 { | ||
margin: 30px 0; | ||
font-size: 4em; | ||
line-height: 1; | ||
letter-spacing: -1px; | ||
} | ||
</style> | ||
|
||
<div class="container"> | ||
<h1>404</h1> | ||
|
||
<p><strong>Page not found :(</strong></p> | ||
<p>The requested page could not be found.</p> | ||
</div> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
www.bitcoincachemachine.org |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
source 'https://rubygems.org' | ||
gem 'github-pages', group: :jekyll_plugins | ||
|
||
# source "https://rubygems.org" | ||
|
||
# # bundle exec jekyll serve | ||
|
||
# # If you have any plugins, put them here! | ||
# group :jekyll_plugins do | ||
# gem "jekyll-feed", "~> 0.6" | ||
# end | ||
|
||
# gem "github-pages", group: :jekyll_plugins | ||
# gem 'nokogiri', '~> 1.10', '>= 1.10.1' |
Oops, something went wrong.