This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
conda create -n textgen python=3.10.9 | |
conda activate textgen | |
install pytorch: pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117 | |
git clone https://github.com/oobabooga/text-generation-webui | |
cd text-generation-webui | |
pip install -r requirements.txt | |
python server.py | |
# download model | |
# refresh model list | |
# load model |
<?php | |
/* | |
* Mysql database class - only one connection alowed | |
*/ | |
class Database { | |
private $_connection; | |
private static $_instance; //The single instance | |
private $_host = "HOSTt"; | |
private $_username = "USERNAME"; | |
private $_password = "PASSWORd"; |
#!/bin/sh | |
# | |
# Upload image(s) to imgur.com | |
# Copyright (C) 2014 Vivien Didelot <[email protected]> | |
# Licensed under GPL version 3, see http://www.gnu.org/licenses/gpl.txt | |
# | |
# Requires "jshon": | |
# http://kmkeen.com/jshon/ | |
# | |
# Alternatives, which suck: |
FROM gizra/drupal-lamp | |
ADD . /var/www/html/circuit/repository | |
WORKDIR /var/www/html/circuit/repository | |
# Add a bash script to finalize all | |
COPY docker_files/run.sh /var/www/html/circuit/repository/docker_files/run.sh | |
RUN chmod +x /var/www/html/circuit/repository/docker_files/run.sh | |
#ENTRYPOINT ["/var/www/html/circuit/repository/docker_files/run.sh"] |
sudo apt-get update | |
sudo apt-get install -y build-essential chrpath libssl-dev libxft-dev | |
sudo apt-get install -y libfreetype6 libfreetype6-dev | |
sudo apt-get install -y libfontconfig1 libfontconfig1-dev | |
cd ~ | |
export PHANTOM_JS="phantomjs-2.1.1-linux-x86_64" | |
wget https://github.com/Medium/phantomjs/releases/download/v2.1.1/$PHANTOM_JS.tar.bz2 | |
tar xvjf $PHANTOM_JS.tar.bz2 | |
mv $PHANTOM_JS /usr/local/share | |
ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin |