Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upping functioning version for team to build on, incomplete readme an…
…d pipeline builds
- Loading branch information
0 parents
commit 9ece7af
Showing
11 changed files
with
291 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.git | ||
.gitignore | ||
.github | ||
.gitattributes | ||
READMETEMPLATE.md | ||
README.md |
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,17 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
|
||
# Custom for Visual Studio | ||
*.cs diff=csharp | ||
|
||
# Standard to msysgit | ||
*.doc diff=astextplain | ||
*.DOC diff=astextplain | ||
*.docx diff=astextplain | ||
*.DOCX diff=astextplain | ||
*.dot diff=astextplain | ||
*.DOT diff=astextplain | ||
*.pdf diff=astextplain | ||
*.PDF diff=astextplain | ||
*.rtf diff=astextplain | ||
*.RTF diff=astextplain |
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,22 @@ | ||
<!--- Provide a general summary of the issue in the Title above --> | ||
|
||
[linuxserverurl]: https://linuxserver.io | ||
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl] | ||
|
||
|
||
<!--- If you have an issue with the project, please provide us with the following information --> | ||
|
||
<!--- Host OS --> | ||
<!--- Command line users, your run/create command, GUI/Unraid users, a screenshot of your template settings. --> | ||
<!--- Docker log output, docker log <container-name> --> | ||
<!--- Mention if you're using symlinks on any of the volume mounts. --> | ||
|
||
|
||
<!--- If you have a suggestion or fix for the project, please provide us with the following information --> | ||
|
||
<!--- What you think your suggestion brings to the project, or fixes with the project --> | ||
<!--- If it's a fix, would it be better suited as a Pull request to the repo ? --> | ||
|
||
## Thanks, team linuxserver.io | ||
|
||
|
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,22 @@ | ||
<!--- Provide a general summary of the issue in the Title above --> | ||
|
||
[linuxserverurl]: https://linuxserver.io | ||
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl] | ||
|
||
|
||
<!--- If you have an issue with the project, please provide us with the following information --> | ||
|
||
<!--- Host OS --> | ||
<!--- Command line users, your run/create command, GUI/Unraid users, a screenshot of your template settings. --> | ||
<!--- Docker log output, docker log <container-name> --> | ||
<!--- Mention if you're using symlinks on any of the volume mounts. --> | ||
|
||
|
||
<!--- If you have a suggestion or fix for the project, please provide us with the following information --> | ||
|
||
<!--- What you think your suggestion brings to the project, or fixes with the project --> | ||
<!--- If it's a fix, would it be better suited as a Pull request to the repo ? --> | ||
|
||
## Thanks, team linuxserver.io | ||
|
||
|
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,43 @@ | ||
# Windows image file caches | ||
Thumbs.db | ||
ehthumbs.db | ||
|
||
# Folder config file | ||
Desktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Windows Installer files | ||
*.cab | ||
*.msi | ||
*.msm | ||
*.msp | ||
|
||
# Windows shortcuts | ||
*.lnk | ||
|
||
# ========================= | ||
# Operating System Files | ||
# ========================= | ||
|
||
# OSX | ||
# ========================= | ||
|
||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear on external disk | ||
.Spotlight-V100 | ||
.Trashes | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk |
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,95 @@ | ||
FROM lsiobase/alpine.nginx:3.7 | ||
|
||
# set version label | ||
ARG BUILD_DATE | ||
ARG VERSION | ||
ARG SNIPEIT_RELEASE | ||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" | ||
LABEL maintainer="TheLamer" | ||
|
||
RUN \ | ||
echo "**** install runtime packages ****" && \ | ||
apk add --no-cache \ | ||
curl \ | ||
libxml2 \ | ||
php7-bcmath \ | ||
php7-ctype \ | ||
php7-curl \ | ||
php7-gd \ | ||
php7-ldap \ | ||
php7-mbstring \ | ||
php7-mcrypt \ | ||
php7-phar \ | ||
php7-pdo_mysql \ | ||
php7-pdo_sqlite \ | ||
php7-sqlite3 \ | ||
php7-tokenizer \ | ||
php7-xml \ | ||
php7-xmlreader \ | ||
php7-zip \ | ||
tar \ | ||
unzip && \ | ||
echo "**** configure php and nginx for snipe-it ****" && \ | ||
sed -i \ | ||
-e 's/;opcache.enable.*=.*/opcache.enable=1/g' \ | ||
-e 's/;opcache.interned_strings_buffer.*=.*/opcache.interned_strings_buffer=8/g' \ | ||
-e 's/;opcache.max_accelerated_files.*=.*/opcache.max_accelerated_files=10000/g' \ | ||
-e 's/;opcache.memory_consumption.*=.*/opcache.memory_consumption=128/g' \ | ||
-e 's/;opcache.save_comments.*=.*/opcache.save_comments=1/g' \ | ||
-e 's/;opcache.revalidate_freq.*=.*/opcache.revalidate_freq=1/g' \ | ||
-e 's/;always_populate_raw_post_data.*=.*/always_populate_raw_post_data=-1/g' \ | ||
-e 's/variables_order = .*/variables_order = "EGPCS"/' \ | ||
/etc/php7/php.ini && \ | ||
sed -i \ | ||
'/opcache.enable=1/a opcache.enable_cli=1' \ | ||
/etc/php7/php.ini && \ | ||
sed -i \ | ||
's/;clear_env = no/clear_env = no/g' \ | ||
/etc/php7/php-fpm.d/www.conf && \ | ||
echo "env[PATH] = /usr/local/bin:/usr/bin:/bin" >> /etc/php7/php-fpm.conf && \ | ||
echo "**** install snipe-it ****" && \ | ||
mkdir -p \ | ||
/var/www/html/ && \ | ||
curl -o \ | ||
/tmp/snipeit.tar.gz -L \ | ||
https://github.com/snipe/snipe-it/archive/"${SNIPEIT_RELEASE}".tar.gz && \ | ||
tar xf \ | ||
/tmp/snipeit.tar.gz -C \ | ||
/var/www/html/ --strip-components=1 && \ | ||
cp /var/www/html/docker/docker.env /var/www/html/.env && \ | ||
echo "**** Cleanup Directories and symlink storage ****" && \ | ||
mkdir -p \ | ||
"/config/dumps" \ | ||
"/config/keys" \ | ||
"/config/data" && \ | ||
rm -rf "/var/www/html/storage/private_uploads" \ | ||
"/var/www/html/public/uploads" \ | ||
"/var/www/html/storage/app/backups" \ | ||
"/var/www/html/storage/logs" \ | ||
"/var/www/html/storage/framework" \ | ||
"/var/www/html/storage/debugbar" && \ | ||
ln -fs "/config/data/private_uploads" "/var/www/html/storage/private_uploads" && \ | ||
ln -fs "/config/data/uploads" "/var/www/html/public/uploads" && \ | ||
ln -fs "/config/dumps" "/var/www/html/storage/app/backups" && \ | ||
ln -fs "/config/logs" "/var/www/html/storage/logs" && \ | ||
ln -fs "/config/framework" "/var/www/html/storage/framework" && \ | ||
ln -fs "/config/debugbar" "/var/www/html/storage/debugbar" && \ | ||
ln -fs "/config/keys/oauth-private.key" "/var/www/html/storage/oauth-private.key" && \ | ||
ln -fs "/config/keys/oauth-public.key" "/var/www/html/storage/oauth-public.key" && \ | ||
echo "**** install dependencies ****" && \ | ||
cd /tmp && \ | ||
curl -sS https://getcomposer.org/installer | php && \ | ||
mv /tmp/composer.phar /usr/local/bin/composer && \ | ||
composer install -d /var/www/html && \ | ||
echo "**** cleanup ****" && \ | ||
rm -rf \ | ||
/tmp/* \ | ||
/root/.composer | ||
|
||
# copy local files | ||
COPY root/ / | ||
|
||
# ports and volumes | ||
EXPOSE 80 | ||
EXPOSE 443 | ||
VOLUME ["/config"] |
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 @@ | ||
[linuxserverurl]: https://linuxserver.io | ||
[forumurl]: https://forum.linuxserver.io | ||
[ircurl]: https://www.linuxserver.io/irc/ | ||
[podcasturl]: https://www.linuxserver.io/podcast/ | ||
|
||
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl] | ||
|
||
## This is a Container in active development by the [LinuxServer.io][linuxserverurl] team and is not recommended for use by the general public. | ||
|
||
If you want to comment\contribute on this container , are looking for support on any of our other work , or are curious about us in general, check out the following. | ||
|
||
* [forum.linuxserver.io][forumurl] | ||
* [IRC][ircurl] on freenode at `#linuxserver.io` | ||
* [Podcast][podcasturl] covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation! |
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,22 @@ | ||
server { | ||
listen 80 default_server; | ||
listen 443 ssl; | ||
root /var/www/html/public; | ||
index index.html index.htm index.php; | ||
server_name APP_URL_PLACEHOLDER; | ||
ssl_certificate /config/keys/cert.crt; | ||
ssl_certificate_key /config/keys/cert.key; | ||
client_max_body_size 0; | ||
location / { | ||
try_files $uri $uri/ /index.php$is_args$args; | ||
} | ||
location ~ \.php$ { | ||
fastcgi_split_path_info ^(.+\.php)(/.+)$; | ||
fastcgi_pass 127.0.0.1:9000; | ||
fastcgi_index index.php; | ||
include /etc/nginx/fastcgi_params; | ||
} | ||
location /.env { | ||
return 404; | ||
} | ||
} |
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,44 @@ | ||
#!/bin/sh | ||
|
||
# create data directories | ||
for dir in \ | ||
'data/private_uploads' \ | ||
'data/uploads' \ | ||
'data/uploads/accessories' \ | ||
'data/uploads/avatars' \ | ||
'data/uploads/barcodes' \ | ||
'data/uploads/categories' \ | ||
'data/uploads/components' \ | ||
'data/uploads/companies' \ | ||
'data/uploads/consumables' \ | ||
'data/uploads/departments' \ | ||
'data/uploads/locations' \ | ||
'data/uploads/manufacturers' \ | ||
'data/uploads/models' \ | ||
'data/uploads/suppliers' \ | ||
'dumps' \ | ||
'keys' \ | ||
'logs' \ | ||
'framework/views' \ | ||
'framework/sessions' \ | ||
'framework/cache' \ | ||
'debugbar' ; do | ||
mkdir -p "/config/$dir" | ||
done | ||
|
||
# Create API key if needed | ||
if [ ! -f "/config/SNIPE_IT_APP_KEY.txt" ] | ||
then | ||
echo "Generating SnipeIT app key for first run" | ||
key=$(php /var/www/html/artisan key:generate --show) | ||
echo $key > /config/SNIPE_IT_APP_KEY.txt | ||
echo "App Key set to $key you can modify the file to update /config/SNIPE_IT_APP_KEY.txt" | ||
fi | ||
|
||
# Ownership | ||
chown -R abc:abc /config/ /var/www/html/storage/ | ||
|
||
# If the Oauth DB files are not present copy the vendor files over to the db migrations | ||
if [ ! -f "/var/www/html/database/migrations/*create_oauth*" ]; then | ||
cp -ax /var/www/html/vendor/laravel/passport/database/migrations/* /var/www/html/database/migrations/ | ||
fi |
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,3 @@ | ||
#!/usr/bin/with-contenv bash | ||
sed -i "s/APP_URL_PLACEHOLDER/${APP_URL}/g" /config/nginx/site-confs/default | ||
exec /usr/sbin/nginx -c /config/nginx/nginx.conf |
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,3 @@ | ||
#!/usr/bin/with-contenv bash | ||
export APP_KEY=$(cat /config/SNIPE_IT_APP_KEY.txt) | ||
exec /usr/sbin/php-fpm7 -F |