41 Commits
v1 ... v1.1.0

Author SHA1 Message Date
ac03fea565 Merge pull request 'Update .woodpecker/build.yml' (#8) from dev into master
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/tag/build-dev Pipeline was successful
ci/woodpecker/tag/build Pipeline was successful
Pipeline failed
ci/woodpecker/manual/build Pipeline was successful
ci/woodpecker/cron/build Pipeline failed
Reviewed-on: #8
2023-08-24 23:05:47 +02:00
eca9f58ded Update .woodpecker/build.yml
All checks were successful
ci/woodpecker/push/build-dev Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
2023-08-24 23:05:32 +02:00
2c4ba8701d Merge pull request 'Update build/start-container.sh' (#7) from dev into master
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/tag/build Pipeline failed
ci/woodpecker/tag/build-dev Pipeline was successful
Reviewed-on: #7
2023-08-24 22:59:04 +02:00
9052ef6ccd Update build/start-container.sh
All checks were successful
ci/woodpecker/push/build-dev Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
2023-08-24 22:50:52 +02:00
c30aa78354 Merge pull request 'dev' (#6) from dev into master
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Reviewed-on: #6
2023-08-24 22:35:40 +02:00
f9bbc871ae Update Dockerfile
All checks were successful
ci/woodpecker/push/build-dev Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
2023-08-24 22:23:57 +02:00
11a2559fd7 Update Dockerfile
All checks were successful
ci/woodpecker/push/build-dev Pipeline was successful
2023-08-24 22:17:51 +02:00
3a232eeb9e Update Dockerfile
All checks were successful
ci/woodpecker/push/build-dev Pipeline was successful
2023-08-24 22:13:39 +02:00
fb225cfeaf Update .woodpecker/build-dev.yaml
All checks were successful
ci/woodpecker/push/build-dev Pipeline was successful
2023-08-24 21:47:45 +02:00
19a72aa415 Update Dockerfile
All checks were successful
ci/woodpecker/push/build-dev Pipeline was successful
2023-08-24 21:47:37 +02:00
c50ef69480 Update .woodpecker/build-dev.yaml
Some checks failed
ci/woodpecker/push/build-dev Pipeline failed
2023-08-24 21:46:54 +02:00
5982495722 Update Dockerfile
Some checks failed
ci/woodpecker/push/build-dev Pipeline failed
2023-08-24 21:45:45 +02:00
vista
dcc02b3e88 update submodules [skip ci] 2023-08-24 19:40:49 +00:00
34e14034c3 Update .woodpecker/build-dev.yaml
All checks were successful
ci/woodpecker/push/build-dev Pipeline was successful
2023-08-24 21:40:43 +02:00
e0ee5eb9a8 testing updating the module
All checks were successful
ci/woodpecker/push/build-dev Pipeline was successful
2023-08-24 21:38:08 +02:00
95d84f8660 Update .woodpecker/build-dev.yaml
All checks were successful
ci/woodpecker/push/build-dev Pipeline was successful
2023-08-24 21:26:20 +02:00
58bda2df32 Merge pull request 'master' (#5) from master into dev
All checks were successful
ci/woodpecker/push/build-dev Pipeline was successful
Reviewed-on: #5
2023-08-24 21:23:08 +02:00
29c690d454 add artisan-bash-completion submodule
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/pr/build-dev Pipeline was successful
2023-08-24 21:22:05 +02:00
fe18131363 Update Dockerfile
All checks were successful
ci/woodpecker/push/build-dev Pipeline was successful
2023-08-24 17:11:19 +02:00
7c64072192 Add Readme.md
All checks were successful
ci/woodpecker/push/build-dev Pipeline was successful
2023-08-21 11:52:30 +02:00
26f65e7f15 Merge pull request 'Update .woodpecker/build-dev.yaml' (#4) from dev into master
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/cron/build Pipeline failed
Reviewed-on: #4
2023-08-17 17:15:10 +02:00
309d7d148e Update .woodpecker/build-dev.yaml
All checks were successful
ci/woodpecker/push/build-dev Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
2023-08-17 17:14:53 +02:00
21adddf19a Merge pull request 'dev' (#3) from dev into master
Reviewed-on: #3
2023-08-17 17:13:49 +02:00
Ruben Momoa
b3c1952e9d Merge branch 'dev'
# Conflicts:
#	.woodpecker/build-dev.yaml
#	.woodpecker/build.yml
#	build/start-container.sh
2023-08-17 17:13:12 +02:00
129af47626 Update build/start-container.sh
All checks were successful
ci/woodpecker/push/build-dev Pipeline was successful
2023-08-15 14:49:07 +02:00
e5a0cde614 Update .woodpecker/build-dev.yaml
All checks were successful
ci/woodpecker/push/build-dev Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
2023-08-15 14:41:21 +02:00
a35ae28a21 Update .woodpecker/build.yml 2023-08-15 14:41:14 +02:00
fef9baec62 Update 'Dockerfile'
All checks were successful
ci/woodpecker/pr/build Pipeline was successful
[SKIP CI]
2023-03-16 13:49:39 +01:00
5870025017 Update 'build/start-container.sh'
[SKIP CI]
2023-03-16 13:49:21 +01:00
1ca34319c8 fix trailing \
All checks were successful
ci/woodpecker/push/build-dev Pipeline was successful
2023-03-16 13:36:17 +01:00
aaf97839f8 Update 'build/start-container'
All checks were successful
ci/woodpecker/push/build-dev Pipeline was successful
2023-03-16 13:27:20 +01:00
3c8b1f42c5 Update '.woodpecker/build-dev.yaml'
[skip ci]
2023-03-16 13:25:16 +01:00
f49d94041f Update '.woodpecker/build.yml'
[skip ci]
2023-03-16 13:24:54 +01:00
ff8d6f4390 Add '.woodpecker/build-dev.yaml'
All checks were successful
ci/woodpecker/push/build-dev Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
2023-03-16 13:17:38 +01:00
81a41040bb Update '.woodpecker/build.yml'
All checks were successful
ci/woodpecker/push/build Pipeline was successful
2023-03-16 13:15:50 +01:00
05c1afb8e5 fix
All checks were successful
ci/woodpecker/push/build Pipeline was successful
2023-03-16 13:13:29 +01:00
8649b86743 move Dockerfile
Some checks failed
ci/woodpecker/push/build Pipeline failed
2023-03-16 13:12:34 +01:00
ac363dccb7 move docker file
[SKIP CI]
2023-03-16 13:12:08 +01:00
14df49cd45 Update 'build/Dockerfile'
Some checks failed
ci/woodpecker/push/build Pipeline failed
2023-03-16 13:11:40 +01:00
6c17d233d8 Update 'build/start-container'
[skip ci]
2023-03-16 13:02:22 +01:00
48160fd97d Update 'build/start-container.sh'
[skip ci]
2023-03-16 13:02:08 +01:00
7 changed files with 90 additions and 12 deletions

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "build/submodules/artisan-bash-completion"]
path = build/submodules/artisan-bash-completion
url = https://gitlab.com/balping/artisan-bash-completion.git

View File

@@ -1,7 +1,22 @@
when:
branch: dev
pipeline:
steps:
update_submodule:
image: woodpeckerci/plugin-git
secrets:
- source: gitea_token
target: GITEA_TOKEN
- source: gitea_user
target: GITEA_USER
commands:
- git submodule update --remote
- if [ ! "$(git status --porcelain)" ]; then echo "no changes"; exit 0; fi
- git config user.name "$${GITEA_USER}"
- git config user.email "$${GITEA_USER}.gitea@narvas.tech"
- git add -A
- git commit -m "update submodules [skip ci]"
- git push "https://$${GITEA_USER}:$${GITEA_TOKEN}@git.narvas.tech/$${CI_REPO}"
check_base:
image: vistanarvas/container-update-checker:latest
secrets:
@@ -27,4 +42,4 @@ pipeline:
path:
include: [ '.woodpecker/build-dev.yaml', 'build/*', 'Dockerfile' ]
cron: nightly
event: [push, cron, manual]
event: [push, cron, manual]

View File

@@ -1,7 +1,25 @@
when:
branch: master
pipeline:
steps:
update_submodule:
image: woodpeckerci/plugin-git
secrets:
- source: gitea_token
target: GITEA_TOKEN
- source: gitea_user
target: GITEA_USER
commands:
- git submodule update --remote
- if [ ! "$(git status --porcelain)" ]; then echo "no changes"; exit 0; fi
- git config user.name "$${GITEA_USER}"
- git config user.email "$${GITEA_USER}.gitea@narvas.tech"
- git add -A
- git commit -m "update submodules [skip ci]"
- git push "https://$${GITEA_USER}:$${GITEA_TOKEN}@git.narvas.tech/$${CI_REPO}"
when:
cron: nightly
event: [push, tag, deployment, cron, manual]
check_base:
image: vistanarvas/container-update-checker:latest
secrets:

View File

@@ -8,10 +8,11 @@ ARG COMPOSER_VERSION='' # composer version number like "2.1" or empty for the la
ENV NVM_DIR="/home/$USERNAME/.nvm"
COPY start-container.sh /usr/local/bin/start-container
COPY submodules/artisan-bash-completion/artisan /etc/bash_completion.d/artisan
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y update \
&& apt-get install -y curl git 7zip php php-xml php-curl php-xml php-mbstring php-mysql \
&& apt-get install -y curl git 7zip php php-xml php-curl php-xml php-mbstring php-mysql php-gd \
&& useradd --create-home --uid=$USER_UID $USERNAME \
&& chmod +x /usr/local/bin/start-container \
&& echo "install composer" \
@@ -22,7 +23,9 @@ RUN export DEBIAN_FRONTEND=noninteractive \
&& if [ -n "$COMPOSER_VERSION" ]; then COMPOSER_VERSION="--${COMPOSER_VERSION}"; fi \
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer $COMPOSER_VERSION \
&& rm composer-setup.php composer-setup.sig /var/www/html/* \
&& chown $USERNAME:$USERNAME /var/www/html
&& chown $USERNAME:$USERNAME /var/www/html \
&& echo 'alias artisan="php artisan"' >> /etc/bash.bashrc \
&& echo 'source /etc/bash_completion.d/*' >> /etc/bash.bashrc
EXPOSE 8080

36
Readme.md Normal file
View File

@@ -0,0 +1,36 @@
# simple-laravel
## setting laravel up in a container
### vite
edit `/vite.config.js`
```diff
import laravel from 'laravel-vite-plugin';
export default defineConfig({
+ server: {
+ hmr: {
+ host: '[Server Domain or IP]'
+ },
+ },
plugins: [
laravel({
input: [
```
edit `/package.json`
```diff
"private": true,
"type": "module",
"scripts": {
- "dev": "vite",
+ "dev": "vite --host 0.0.0.0",
"build": "vite build"
},
"devDependencies": {
```

View File

@@ -6,14 +6,16 @@ set -e
# init nvm
\. $NVM_DIR/nvm.sh
if [[ "$INSTALL_BEFORE_START" = true ]]; then
echo "composer and npm install"
composer install
npm install
fi
if [ ! -f /var/www/html/artisan ]; then
echo "No existing Laravel project found"
composer create-project laravel/laravel /var/www/html "$LARAVEL_VERSION"
npm install -D tailwindcss postcss autoprefixer --prefix /var/www/html
sed -i "/export default defineConfig({/a\ server: {host: '0.0.0.0'}," /var/www/html/vite.config.js
echo -e "@tailwind base;\n@tailwind components;\n@tailwind utilities;" >> /var/www/html/resources/css/app.css
echo -e '/** @type {import('tailwindcss').Config} */\nmodule.exports = {\n content: [\n "./resources/**/*.blade.php",\n "./resources/**/*.js",\n "./resources/**/*.vue",\n ],\n theme: {\n extend: {},\n },\n plugins: [],\n}' > /var/www/html/tailwind.config.js
npx tailwindcss init -p
exit
fi
if [[ "$AUTO_START_NPM_DEV" = true ]]; then
@@ -22,4 +24,4 @@ if [[ "$AUTO_START_NPM_DEV" = true ]]; then
fi
echo "Staring Laravel"
php /var/www/html/artisan serve --host=0.0.0.0 --port=8080
php /var/www/html/artisan serve