Skip to content

Commit 8a1f5a9

Browse files
authoredMar 5, 2021
Initial version squashed commits (#8)
1 parent 8a75126 commit 8a1f5a9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+3673
-0
lines changed
 

‎.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
build
2+
tmp*
3+
composer.lock
4+
vendor

‎Dockerfile

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# docker container with PHP and the Storj test network
2+
FROM php:8.0-cli
3+
4+
RUN echo "deb http://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list \
5+
&& apt-get update \
6+
&& apt-get install -y libffi-dev postgresql git redis-server wget \
7+
&& docker-php-ext-install ffi
8+
9+
# Go 1.15 is not in debian repository buster-backports yet
10+
RUN wget https://dl.google.com/go/go1.15.8.linux-amd64.tar.gz \
11+
&& tar -xvf go1.15.8.linux-amd64.tar.gz \
12+
&& mv go /usr/local
13+
14+
ENV GOROOT=/usr/local/go
15+
ENV PATH="/usr/local/go/bin:${PATH}"
16+
17+
RUN rm /etc/postgresql/11/main/pg_hba.conf; \
18+
echo 'local all all trust' >> /etc/postgresql/11/main/pg_hba.conf; \
19+
echo 'host all all 127.0.0.1/8 trust' >> /etc/postgresql/11/main/pg_hba.conf; \
20+
echo 'host all all ::1/128 trust' >> /etc/postgresql/11/main/pg_hba.conf; \
21+
echo 'host all all ::0/0 trust' >> /etc/postgresql/11/main/pg_hba.conf;
22+
23+
RUN git clone https://github.com/storj/storj.git /storj \
24+
&& cd /storj \
25+
&& make install-sim

0 commit comments

Comments
 (0)
Please sign in to comment.