mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-24 13:45:32 +03:00
torrust-tracker; cassandra; testrail
This commit is contained in:
parent
acdd4f9dd1
commit
ffcbb546dd
@ -2,6 +2,9 @@
|
||||
### 2022
|
||||
* `aug`:
|
||||
* added basic support of perforce images. `p4p` already added. versions: `r16.2`, `r17.1`, `r17.2`, `r18.1`, `r18.2`, `r19.1`, `r19.2`, `r20.1`, `r20.2`, `r21.1`, `r21.2`, `r22.1`.
|
||||
* added `torrust-tracker`
|
||||
* improved `testrail` images: added support of latest versions with `cassandra`
|
||||
* added `cassandra` but `3.11` version only
|
||||
* `july`:
|
||||
* splited `zabbix` versions from `3.0` to `6.4` and `latest`.
|
||||
* `june`:
|
||||
|
11
linux/ecosystem/cassandra/3.11/Dockerfile
Normal file
11
linux/ecosystem/cassandra/3.11/Dockerfile
Normal file
@ -0,0 +1,11 @@
|
||||
FROM bitnami/cassandra:3.11
|
||||
|
||||
USER root
|
||||
|
||||
ARG CAS_LUCENE_PLUGIN_VER=3.11.3.0
|
||||
ARG CAS_LUCENE_PLUGIN_URL=https://repo1.maven.org/maven2/com/stratio/cassandra/cassandra-lucene-index-plugin/${CAS_LUCENE_PLUGIN_VER}/cassandra-lucene-index-plugin-${CAS_LUCENE_PLUGIN_VER}.jar
|
||||
|
||||
RUN cd /opt/bitnami/cassandra/lib && \
|
||||
curl ${CAS_LUCENE_PLUGIN_URL}
|
||||
|
||||
USER 1001
|
19
linux/ecosystem/cassandra/3.11/Makefile
Normal file
19
linux/ecosystem/cassandra/3.11/Makefile
Normal file
@ -0,0 +1,19 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
make build
|
||||
make deploy
|
||||
make clean
|
||||
|
||||
build:
|
||||
docker-compose build --compress --parallel
|
||||
|
||||
deploy:
|
||||
docker-compose push
|
||||
|
||||
clean:
|
||||
docker container prune -f
|
||||
docker image prune -f
|
||||
docker network prune -f
|
||||
docker volume prune -f
|
||||
docker system prune -af
|
6
linux/ecosystem/cassandra/3.11/docker-compose.yml
Normal file
6
linux/ecosystem/cassandra/3.11/docker-compose.yml
Normal file
@ -0,0 +1,6 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/cassandra:3.11"
|
||||
build:
|
||||
context: .
|
@ -6,7 +6,7 @@ app:
|
||||
make clean
|
||||
|
||||
build:
|
||||
docker-compose build --compress --parallel
|
||||
docker-compose build --compress --parallel --progress plain
|
||||
|
||||
deploy:
|
||||
docker-compose push
|
||||
|
@ -1,5 +1,37 @@
|
||||
FROM epicmorg/apache2:php7.4
|
||||
|
||||
ARG PHP_MODULE_PATH=/usr/lib/php/20190902
|
||||
ARG PHP_VER=7.4
|
||||
ARG PHP_DIR=/etc/php/${PHP_VER}
|
||||
ARG CAS_PHP_INI=${PHP_DIR}/mods-available/cassandra.ini
|
||||
|
||||
##############################################################################
|
||||
# Cassandra CPP Support Install
|
||||
##############################################################################
|
||||
|
||||
##############################################################################
|
||||
# Cassandra PHP Drivers Install
|
||||
##############################################################################
|
||||
|
||||
COPY addons/cassandra-php-driver /tmp/cassandra-php-driver
|
||||
RUN cd /tmp/cassandra-php-driver && \
|
||||
dpkg -i ./multiarch-support_2.28-10+deb10u1_amd64.deb && \
|
||||
dpkg -i ./libuv1_1.35.0-1_amd64.deb && \
|
||||
dpkg -i ./cassandra-cpp-driver_2.16.0-1_amd64.deb
|
||||
|
||||
COPY addons/Drivers.Cassandra/Linux/7.4/cassandra.so ${PHP_MODULE_PATH}
|
||||
RUN echo "extension = ${PHP_MODULE_PATH}/cassandra.so" > ${CAS_PHP_INI} && \
|
||||
ln -sf ${CAS_PHP_INI} ${PHP_DIR}/cgi/conf.d/cassandra.ini && \
|
||||
ln -sf ${CAS_PHP_INI} ${PHP_DIR}/cli/conf.d/cassandra.ini && \
|
||||
ln -sf ${CAS_PHP_INI} ${PHP_DIR}/fpm/conf.d/cassandra.ini && \
|
||||
ln -sf ${CAS_PHP_INI} ${PHP_DIR}/apache2/conf.d/cassandra.ini && \
|
||||
php -m && \
|
||||
php -v
|
||||
|
||||
##############################################################################
|
||||
# Testrail Install
|
||||
##############################################################################
|
||||
|
||||
ENV TESTRAIL_VERSION=latest
|
||||
ENV DOWNLOAD_URL=https://secure.gurock.com/downloads/testrail/testrail-${TESTRAIL_VERSION}-ion72.zip
|
||||
ENV TR_DEFAULT_TASK_EXECUTION=60
|
||||
@ -29,7 +61,8 @@ RUN \
|
||||
apt-get clean && \
|
||||
echo "ServerName localhost" >> /etc/apache2/apache2.conf && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
rm -rf /run.sh
|
||||
rm -rf /run.sh && \
|
||||
rm -rf /tmp/*
|
||||
|
||||
|
||||
RUN \
|
||||
|
@ -6,7 +6,7 @@ app:
|
||||
make clean
|
||||
|
||||
build:
|
||||
docker-compose build --compress --parallel
|
||||
docker-compose build --compress --parallel --progress plain
|
||||
|
||||
deploy:
|
||||
docker-compose push
|
||||
|
BIN
linux/ecosystem/testrail/latest/addons/Drivers.Cassandra/Linux/7.3/cassandra.so
Executable file
BIN
linux/ecosystem/testrail/latest/addons/Drivers.Cassandra/Linux/7.3/cassandra.so
Executable file
Binary file not shown.
BIN
linux/ecosystem/testrail/latest/addons/Drivers.Cassandra/Linux/7.4/cassandra.so
Executable file
BIN
linux/ecosystem/testrail/latest/addons/Drivers.Cassandra/Linux/7.4/cassandra.so
Executable file
Binary file not shown.
@ -0,0 +1,24 @@
|
||||
# Cassandra PHP drivers for 7.3 and 7.4
|
||||
|
||||
`git clone https://git.assembla.com/gurock/Drivers.Cassandra.git`
|
||||
|
||||
Drivers are built from sources of the awesome DataStax PHP driver available [here](https://github.com/datastax/php-driver)
|
||||
|
||||
### Important: PHP driver requires C++ driver installed. It can be found [here](https://github.com/datastax/cpp-driver)
|
||||
|
||||
|
||||
|
||||
# Copyright
|
||||
|
||||
© DataStax, Inc.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the “License”); you may not use
|
||||
this file except in compliance with the License. You may obtain a copy of the
|
||||
License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software distributed
|
||||
under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR
|
||||
CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations under the License.
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1
linux/ecosystem/testrail/latest/addons/cassandra-php-driver/download.sh
Executable file
1
linux/ecosystem/testrail/latest/addons/cassandra-php-driver/download.sh
Executable file
@ -0,0 +1 @@
|
||||
wget -r -k -l 7 -p -E -nc --reject="index.html*" --user-agent=Mozilla/5.0 https://downloads.datastax.com/cpp-driver/
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -6,7 +6,7 @@ app:
|
||||
make clean
|
||||
|
||||
build:
|
||||
docker-compose build --compress --parallel
|
||||
docker-compose build --compress --parallel --progress plain
|
||||
|
||||
deploy:
|
||||
docker-compose push
|
||||
|
39
linux/ecosystem/torrust-tracker/Dockerfile
Normal file
39
linux/ecosystem/torrust-tracker/Dockerfile
Normal file
@ -0,0 +1,39 @@
|
||||
FROM epicmorg/debian:bullseye-develop as builder
|
||||
|
||||
|
||||
RUN git clone https://github.com/torrust/torrust-tracker.git /opt/torrust-tracker && \
|
||||
cd /opt/torrust-tracker && \
|
||||
cargo build --release && \
|
||||
ls -las && \
|
||||
cd ./target/release/ && \
|
||||
ls -las
|
||||
|
||||
|
||||
FROM epicmorg/debian:bullseye
|
||||
|
||||
ENV TRACKER_PORT=1337
|
||||
ENV TRACKER_ADMIN=1488
|
||||
ENV TRACKER_DIR=/app
|
||||
ENV TRACKER_DATA=${TRACKER_DIR}/data
|
||||
|
||||
RUN mkdir -p ${TRACKER_DIR} ${TRACKER_DATA}
|
||||
|
||||
RUN ln -sf ${TRACKER_DATA}/config.toml ${TRACKER_DIR}/config.toml
|
||||
RUN ln -sf ${TRACKER_DATA}/data.db ${TRACKER_DIR}/data.db
|
||||
|
||||
COPY --from=builder /opt/torrust-tracker/target/release/torrust-tracker ${TRACKER_DIR}/torrust-tracker
|
||||
RUN chmod 755 ${TRACKER_DIR}/torrust-tracker
|
||||
|
||||
EXPOSE ${TRACKER_PORT}
|
||||
EXPOSE ${TRACKER_PORT}/udp
|
||||
EXPOSE ${TRACKER_ADMIN}
|
||||
|
||||
WORKDIR ${TRACKER_DIR}
|
||||
VOLUME ${TRACKER_DATA}
|
||||
|
||||
# Add image configuration and scripts
|
||||
COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
|
||||
RUN chmod 755 /usr/bin/docker-entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["tini", "-s", "--", "docker-entrypoint.sh"]
|
||||
CMD ["docker-entrypoint.sh"]
|
19
linux/ecosystem/torrust-tracker/Makefile
Normal file
19
linux/ecosystem/torrust-tracker/Makefile
Normal file
@ -0,0 +1,19 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
make build
|
||||
make deploy
|
||||
make clean
|
||||
|
||||
build:
|
||||
docker-compose build --compress --parallel --progress plain
|
||||
|
||||
deploy:
|
||||
docker-compose push
|
||||
|
||||
clean:
|
||||
docker container prune -f
|
||||
docker image prune -f
|
||||
docker network prune -f
|
||||
docker volume prune -f
|
||||
docker system prune -af
|
6
linux/ecosystem/torrust-tracker/docker-compose.yml
Normal file
6
linux/ecosystem/torrust-tracker/docker-compose.yml
Normal file
@ -0,0 +1,6 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/torrust-tracker:latest"
|
||||
build:
|
||||
context: .
|
10
linux/ecosystem/torrust-tracker/docker-entrypoint.sh
Executable file
10
linux/ecosystem/torrust-tracker/docker-entrypoint.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
# Setup default Opts
|
||||
: ${RACKER_PORT:=1337}
|
||||
: ${RACKER_ADMIN:=1488}
|
||||
|
||||
echo "[torrust-tracker] Starting up"
|
||||
cd /app
|
||||
/app/torrust-tracker
|
Loading…
Reference in New Issue
Block a user