HUB
Sign inSign up

mafio69/symfony

By mafio69

•Updated over 5 years ago

Image
0

1.1K

mafio69/symfony repository overview

Tested on ubuntu 20.04 INFO Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
PHP: PHP 8.0.3 (cli) (built: Mar 5 2021 08:38:30)
Apache: Apache/2.4.38 (Debian)

For the application to work, it is necessary to run dockerfile or docker-compose
To run on the system, docker and docker-compose must be installed

⁠Note: All commands are executed in the directory where docker-compose.yml is located

⁠Linux

1.install docker ubuntu⁠
2.install docker-compose ubuntu⁠

⁠WIN

1.install docker win 10⁠

NOTE <EXAMPLE> To be replaced with the appropriate values
exit 0 or exit status 0 In linux it means [OK] any other number is an error

⁠RUN APPLICATION USING scripts-sh

⁠ROAD MAP:

1.run in terminal first-run-make-env.sh
2 run-command bash docker ps
3 from displayed list get CONTAINER ID where NAMES api-* (example CONTAINER_ID df6e4586f8ae)
4 run in terminal docker exec <CONTAINER_ID> bash -c /temp/fix.sh
5 run in terminal run-docker-compose.sh It works

⁠STANDARD APPLICATION RUN

⁠ROAD MAP:
  1. Do the above, run docker network create mf-net
  2. Copy .env_exampleand save in the same directory as .env or cp .env_example .env
  3. Run in bash docker-compose build
  4. Run in bash docker-compose up
    a. run-command bash docker ps
    b. from displayed list get CONTAINER ID where NAMES api-* (example CONTAINER_ID df6e4586f8ae)
    c. run in terminal docker exec <CONTAINER_ID> bash -c /temp/fix.sh
  5. Run in bash docker-compose down next docker-compose up It works

⁠Commands:

  • docker network create mf-net (zero command)
  • docker-compose build (first command)
  • docker-compose up (second command to start docker and after building the container)
  • docker ps (list of current containers)
  • docker down -v (stop and remove v-optional)
  • docker exec -it <container_id> bash (wejście do kontenera) Note: All commands are executed in the directory where docker-compose.yml is located

⁠Track logs in bash, The migration message must be [OK] and cron should display cron is runing

Note: in case of port conflicts, database name ... it is possible to change the value in the _.env _ file in the ** .env_example** file, we do not change anything in the main application directory.

NOTE: RUN docker ps The list will include the port, e.g. 8070:8080 the first is the host port, e.g. http://localhost:8070⁠
used in the browser should display a running application
app: http://localhost⁠:<WEB_PORT>
database: localhost:<DATABASE_PORT> user: <DATABASE_USER>(test)
password:<DATABASE_PASSWORD>(1234) database:<DATABASE_NAME> (ccfound)
app login: [email protected] password AHArvk!#AG7dFqm[ (for all user)

⁠GCLOUD

RUN docker pull gcr.io/google.com/cloudsdktool/cloud-sdk:latest
TEST docker run gcr.io/google.com/cloudsdktool/cloud-sdk:latest gcloud version
AUTH docker run -ti --name gcloud-config gcr.io/google.com/cloudsdktool/cloud-sdk gcloud auth login
LIST docker run --rm --volumes-from gcloud-config gcr.io/google.com/cloudsdktool/cloud-sdk gcloud compute instances list --project your_project

⁠He put together

mafio69⁠

Tag summary
Recent tags
Content type
Image
Digest
Size
398.1 MB
Last updated
over 5 years ago
docker pull mafio69/symfony:latest