Code Monkey home page Code Monkey logo

sulu-docker's Introduction


Sulu logo


GitHub license GitHub tag (latest SemVer) Test workflow status GitHub commit activity GitHub contributors Packagist downloads


Sulu is a highly extensible open-source PHP content management system based on the Symfony framework. Sulu is developed to deliver robust multi-lingual and multi-portal websites while providing an intuitive and extensible administration interface to manage the full content lifecycle.

Have a look at the official Sulu website for a comprehensive list of Sulu's features, core values and use cases.


Sulu Slideshow


This repository contains the core framework of the Sulu content management system. The framework implements the functionality that is built into the Sulu content management system and therefore is a dependency of all Sulu projects.

If you want to start a new Sulu project, you might be interested in the sulu/skeleton template repository. If you are planning to extend your existing Sulu project, visit the Sulu organization on GitHub for a complete list of official Sulu bundles.

๐Ÿš€ย  Installation and Documentation

The sulu/skeleton repository provides a pre-configured project template to quick-start your development. Visit the official Sulu documentation to find out how to use the project template for starting your own Sulu project.

โค๏ธย  Community and Contributions

The Sulu content management system is a community-driven open source project backed by various partner companies. We are committed to a fully transparent development process and highly appreciate any contributions. Whether you are helping us fixing bugs, proposing new feature, improving our documentation or spreading the word - we would love to have you as part of the Sulu community.

๐Ÿ“ซย  Have a question? Want to chat? Ran into a problem?

We are happy to welcome you in our official Slack channel or answer your questions via GitHub Discussions! Obviously you can always reach out to us directly via the Sulu twitter account or post your question on StackOverflow with the official sulu tag.

๐Ÿคย  Found a bug? Missing a specific feature?

Feel free to file a new issue with a respective title and description on the the sulu/sulu repository. If you already found a solution to your problem, we would love to review your pull request! Have a look at our contribution guidelines to find out about our coding standards.

โœ…ย  Requirements

Sulu requires a PHP version higher or equal to 8.2 and is compatible with every Symfony version starting from 5.4. Have a look at the require section in the composer.json of the sulu/sulu core framework to find an up-to-date list of the requirements of Sulu content management system.

๐Ÿ“˜ย  License

The Sulu content management system is released under the under terms of the MIT License.

sulu-docker's People

Contributors

alexander-schranz avatar dmetzler1988 avatar niklasnatter avatar sebtm avatar tomkeur avatar trickreich avatar wachterjohannes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sulu-docker's Issues

[idea] create a sulu-cli tool

Hey,
I think it could be nice to have a cli tool in order to setup project, run our stack, manage sulu app...

For instance here is a list of command the cli tool will handle:

  • sulu-cli install: execute composer create-project "sulu/sulu-minimal" app and other stuff to install a sulu new app
  • sulu-cli start: Detect you OS and launch the correct stack (docker-sync + docker-compose.{os})
  • sulu-cli stop: Stop the current running stack
  • sulu-cli exec sulu:build dev --destroy: execute a Sulu command
  • sulu-cli fix-permission: fix permissions if it's needed
  • ...

I think we can develop this sulu-cli tool in Python or NodeJs or Golang.

What do you think about this?

Revive fpm based docker environemnt

In my opinion, the worst decision for #51 is to replace nginx+fpm with apache.
I would suggest keeping the previous configuration ideally here and create apache-based environment as a separate project / separate docker-compose file here.

Is apache still a thing in php world in 2020?

[Discussion] Change database to mariadb

At this time the mysql image does not support ARM processors. Or in other words, it does not work on the new M1 from Apple .
I tested the set up on an M1 once with Maria DB.
With Maria DB it works and seems to run the same way as with mysql.

So what do you think about changing the setup from mysql to maria db for supporting the ARM stack with no disadvantage for other machines.

Proposed solution

db:
    image: mariadb:10.5.8
    command: --default-authentication-plugin=mysql_native_password
    ports:
      - ${PORT_MYSQL}:3306
    volumes:
      - ./data/mysql:/var/lib/mysql
    environment:
      MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
      MYSQL_DATABASE: ${MYSQL_DATABASE}
      MYSQL_USER: ${MYSQL_USER}
      MYSQL_PASSWORD: ${MYSQL_PASSWORD}

docker-compose up: elastisearch error

Running docker-compose up after a fresh git pull results in an elastisearch error and failure:

> [sulu-docker] โ(master)% docker-compose up
[+] Running 0/2
โ ฟ elasticsearch Error
โ ด mysql Pulling
no matching manifest for linux/arm64/v8 in the manifest list entries
> [sulu-docker] โ(master)%

X-Pack plugin license problems

The Login to Kibana fails because of this message:

Login is currently disabled because the license could not be determined. Please check that
Elasticsearch has the X-Pack plugin installed and is reachable, then refresh this page.

I googled a bit for it and it seems https://github.com/elastic/kibana-docker is abandoned and the docker images by Elastic Inc. should be used now.

Change default volume filepath for ElasticSearch

Hi,

I tried to launch your sulu docker repo on my dev computer.

During first launch, I received this issue for elasticsearch image like explain here :
https://stackoverflow.com/questions/65668188/elastic-search-accessdeniedexception-usr-share-elasticsearch-data-nodes-0-a

Like in post, I've to change default volume filepath in docker-compose :

volumes:
  - ./data/elasticsearch:/usr/share/elasticsearch/data

with

volumes:
  - ./data/elasticsearch:/**var**/**lib**/elasticsearch/data

Works well for me after this modification.

I let you modify in your template if you think it's necessary.

Thanks for your great job with sulu ๐Ÿ‘

Regards,
B.

Fish Shell installation

Installation of Fish Shell failed:

RUN apt-get install software-properties-common -y
RUN apt-add-repository ppa:fish-shell/release-2
RUN apt-get update
RUN apt-get install fish

# After set the user
ENV SHELL /usr/bin/fish

Problem with the ppa occurs (can't found the fish-shell release2).

Failed to fetch http://ppa.launchpad.net/fish-shell/release-2/ubuntu/dists/jessie/main/binary-amd64/Packages  404  Not Found

logstash does not include logs from var/logs/nginx/project_error.log

example content of var/logs/nginx/project_error.log file:

2018/10/02 13:32:02 [error] 9#9: *49 upstream sent too big header while reading response header from upstream, client: 192.168.0.1, server: app.lo, request: "GET / HTTP/1.1", upstream: "fastcgi://192.168.0.7:9000", host: "app.lo:10080"
2018/10/02 13:34:26 [error] 8#8: *1 upstream sent too big header while reading response header from upstream, client: 192.168.0.1, server: app.lo, request: "GET / HTTP/1.1", upstream: "fastcgi://192.168.0.4:9000", host: "app.lo:10080"

Elasticsearch problem

Hi guys,

container elasticsearch exist by itself every once in a while.. No log for errors, something other is problem...

Config: OSX, 16GB RAM, 2.8 GHz Quad-Core Intel Core i7
Docker desktop: 3.3.3, Engine 20.10.6, Compose 1.29.1

Improve .env file

add the domain and the ports and add some documentation for this file

.gitkeep entries in .gitignore file are ineffective

line 2-11 of the following code-snippet are ineffective right now:

/var
!/var/data/elasticsearch/.gitkeep
!/var/data/indexes/.gitkeep
!/var/data/media/var/.gitkeep
!/var/data/media/web/.gitkeep
!/var/data/mysql/.gitkeep
!/var/data/php/.gitkeep
!/var/logs/project/.gitkeep
!/var/logs/nginx/.gitkeep
!/var/tmp/bootstrap.php.cache
!/var/tmp/SymfonyRequirements.php

this is because the parent directory (or an ancestor-directory) of the files is ignored:
https://stackoverflow.com/questions/26189082/track-file-inside-ignored-directory

php container user

Hi,

if I set the PHP_USER_ID in the env file to the id of the host system user, the php container crashes with the following errors:

php_1    | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.208.3. Set the 'ServerName' directive globally to suppress this message
php_1    | (13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80
php_1    | no listening sockets available, shutting down
php_1    | AH00015: Unable to open logs

If I set PHP_USER_ID to root, the containers are created without any issue but I obviously can't change files in the project folder without sudo.

I'm on Ubuntu 20.10, VS Code with Docker version 19.03.8. Any help is welcome.

Thanks.

Update README for new structure

The Initialize Sulu part of the readme does not work with the current dev-branch (and I assume Version 2 of Sulu). Since the readme specifies to use the dev-branch during install, this should be changed.

Linux comptatibility (Ubuntu based distro)

Hey,

I would like to use this on my Linux Mint (Ubuntu based) but there is some issue with unison sync on linux. Add to that the native linux sync is already performant.

If I remove the sync_strategy in docker-sync.yml https://github.com/wachterjohannes/sulu-docker/blob/master/docker-sync.yml#L11 this will use the native linux sync and works for linux too!

Can you test if on MacOS and Windows this line is necessary? According to docker-sync documentation by default on MacOS and Windows, it will use unison.

Thanks!

Note: another solution will be to create several docker-compose.{os}.yml

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.