{"id":15447507,"url":"https://github.com/datadavev/ezid_docker","last_synced_at":"2025-03-28T08:44:21.096Z","repository":{"id":83563439,"uuid":"290040053","full_name":"datadavev/ezid_docker","owner":"datadavev","description":"Source for building EZID service docker image.","archived":false,"fork":false,"pushed_at":"2020-08-27T15:01:59.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T09:27:24.998Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datadavev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-24T21:06:53.000Z","updated_at":"2020-08-27T15:02:01.000Z","dependencies_parsed_at":"2023-07-03T06:26:52.860Z","dependency_job_id":null,"html_url":"https://github.com/datadavev/ezid_docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datadavev%2Fezid_docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datadavev%2Fezid_docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datadavev%2Fezid_docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datadavev%2Fezid_docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datadavev","download_url":"https://codeload.github.com/datadavev/ezid_docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245999318,"owners_count":20707554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T20:06:43.550Z","updated_at":"2025-03-28T08:44:21.087Z","avatar_url":"https://github.com/datadavev.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"EZID Docker\n===========\n\nSource for building EZID service docker image.\n\nThe application itself is a Django app and has many dependencies.\n`pyenv` is used to provide a level of python library version\nindependence, and as such it is necessary to install the build tools in\nthe image to provide the expected python and library versions.\n\nNotes\n-----\n\nBuilding the image (set appropriate values for `ADMIN_PASSWORD` and\n`DB_PASSWORD`):\n\n    docker build \\\n      --tag base_aws:1.0 \\\n      --build-arg GIT_BRANCH=docker-setup \\\n      --build-arg ADMIN_PASSWORD=admin \\\n      --build-arg DB_PASSWORD=db_password \\\n      .\n\nCreate and run container (web server will listen on 18080 when started):\n\n    docker run --publish 18080:18080 -it --name aw_ezid_1 base_aws:1.0\n\nTo start the apache server in the Docker container:\n\n    # su - ezid\n    [ezid]$ ~/etc/init.d/httpd start\n\nRestart container:\n\n    docker start -ia aw_ezid_1\n\nRemove container:\n\n    docker container rm aw_ezid_1\n\nList images:\n\n    docker images  \n\nRemove an image:\n\n    docker image rm HASH\n\nMariaDB\n-------\n\nGet instance of MariaDB running and clone content from stage or dev\ndatabase. \\[1\\].\n\n    docker pull mariadb/server:10.4\n    docker run -d --name ezid_maria -e MARIADB_ROOT_PASSWORD=my_root_passwd mariadb/server:10.4\n\n`docker run --name ezid-mariadb \\            -e MYSQL_ROOT_PASSWORD=my-secret-pw             -d mariadb:10`\n\nTo access the database service from the container, use the special DNS\nname for the host. \\[2\\] .OS X e.g.:\n\n    mysql -h docker.for.mac.host.internal -u root -p\n\n### Copying the database\n\nCreate a dump of the database using `mysqldump` \\[3\\]. Hint: This can be\ndone on your localhost by opening a tunnel to the dev or stage instance\nof EZID.\n\n    mysqldump -h ${DB_HOST} \\\n      -u ezidrw \\\n      -p \\\n      --single-transaction \\\n      --databases ezid \u003e ezid_dump.sql\n\nReferences\n----------\n\n\u003cdiv id=\"refs\" class=\"references\"\u003e\n\n\u003cdiv id=\"ref-InstallingUsingMariaDB\"\u003e\n\n\\[1\\] “Installing and Using MariaDB via Docker,” *MariaDB\nKnowledgeBase*.\n\u003chttps://mariadb.com/kb/en/installing-and-using-mariadb-via-docker/\u003e\n(accessed Aug. 26, 2020).\n\n\u003c/div\u003e\n\n\u003cdiv id=\"ref-HowAccessHost\"\u003e\n\n\\[2\\] “How to access host port from docker container,” *Stack Overflow*.\n\u003chttps://stackoverflow.com/questions/31324981/how-to-access-host-port-from-docker-container\u003e\n(accessed Aug. 26, 2020).\n\n\u003c/div\u003e\n\n\u003cdiv id=\"ref-MySQLMySQLReference\"\u003e\n\n\\[3\\] “MySQL :: MySQL 8.0 Reference Manual :: 4.5.4 mysqldump — A\nDatabase Backup Program.”\n\u003chttps://dev.mysql.com/doc/refman/8.0/en/mysqldump.html\u003e (accessed Aug.\n26, 2020).\n\n\u003c/div\u003e\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatadavev%2Fezid_docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatadavev%2Fezid_docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatadavev%2Fezid_docker/lists"}