120 lines
1.8 KiB
Markdown
120 lines
1.8 KiB
Markdown
# Nextcloud Dev En
|
|
|
|
two options
|
|
|
|
one created manualy with a simple podman and a local database
|
|
|
|
one fully under podman, done on nextcloud conference
|
|
|
|
# Option 1 / simple podman
|
|
|
|
Create a dev env for nextcloud
|
|
|
|
setup database :
|
|
|
|
```
|
|
./setupdatabase.sh
|
|
./setuppodman
|
|
```
|
|
|
|
On ubuntu VOLUME creation failed ( podman 4.9.3 )
|
|
Comment out VOLUME var/www/html in 31/apache/Dockerfile
|
|
|
|
```
|
|
podman tag $image_id nextcloud_local
|
|
./clonegit.sh
|
|
./runpodman.sh
|
|
./doit.sh
|
|
```
|
|
|
|
se connecter sur http://127.0.0.1:8080
|
|
|
|
creer l'administrateur
|
|
|
|
puis
|
|
|
|
```
|
|
./sync_poll.sh
|
|
```
|
|
|
|
il reste encore a compiler avec les dependances composer et le build npm vuejs
|
|
|
|
```
|
|
./enter_www_data.sh
|
|
|
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash \
|
|
&& export NVM_DIR="$HOME/.nvm" \
|
|
&& . "$NVM_DIR/nvm.sh" \
|
|
&& nvm install 20 \
|
|
&& nvm alias default 20
|
|
|
|
export NVM_DIR="$HOME/.nvm"
|
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
|
```
|
|
|
|
```
|
|
cd custom_apps/polls/
|
|
|
|
make
|
|
|
|
ln -s composer.phar build/tools/composer
|
|
export PATH=$PATH:$(pwd)/build/tools
|
|
|
|
make
|
|
```
|
|
|
|
et a activer l'application polls
|
|
|
|
# A Faire
|
|
|
|
utiliser la base de donnee postgres et non le SQLLite ?
|
|
|
|
./migrate_db_sqlite2postgres.sh
|
|
|
|
|
|
# NEW PLAIN nextcloud dev
|
|
|
|
setup
|
|
|
|
```
|
|
git clone git@github.com:juliusknorr/nextcloud-docker-dev.git
|
|
git git@github.com:nextcloud/server.git
|
|
```
|
|
|
|
check nextcloud-docker-dev.env then
|
|
|
|
```
|
|
cp nextcloud-docker-dev.env nextcloud-docker-dev.git/.env
|
|
```
|
|
|
|
https setup, local private PKI.
|
|
|
|
missing setup cert and setupcert host ... mkcert compilation + install
|
|
|
|
update-certs update-hosts
|
|
|
|
https://nextcloud-dev.l0g.eu
|
|
|
|
|
|
then will be done as sudo ( RootLess or podman limitation ? )
|
|
|
|
```
|
|
./runit.sh dryrun up
|
|
```
|
|
|
|
start
|
|
|
|
```
|
|
./runit.sh up
|
|
```
|
|
|
|
stop
|
|
|
|
```
|
|
./runit.sh down
|
|
```
|
|
|
|
|
|
Pour les mails : https://mail-dev.l0g.eu/#
|
|
|
|
un MailHog est installé ! |