forked from ckan/ckan
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e69b3f1
commit b8d8ef9
Showing
8 changed files
with
73 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,13 @@ LABEL maintainer="[email protected]" | |
ADD . /usr/lib/ | ||
WORKDIR /usr/lib/ | ||
|
||
RUN chmod 777 /usr/lib/ckan-run.sh | ||
|
||
ENV PATH=${PATH}:/usr/lib | ||
|
||
RUN pip install -r requirements.txt | ||
RUN python setup.py install | ||
|
||
EXPOSE 5000 | ||
|
||
ENTRYPOINT [ "ckan-run.sh" ] | ||
ENTRYPOINT [ "/usr/lib/ckan-run.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +0,0 @@ | ||
python -m venv /workspace/ckan/ckan/default | ||
. /workspace/ckan/ckan/default/bin/activate | ||
pip install -r requirements.txt | ||
python setup.py install | ||
set -o allexport | ||
source .env.development | ||
ckan -c test-core.ini db init | ||
ckan -c test-core.ini run | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
echo "Ejecución de migraciones" | ||
ckan -c /usr/lib/ckan/config/who.ini db init |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
echo "....crea el entorno virtual" | ||
python -m venv /workspace/ckan/ckan/default | ||
. /workspace/ckan/ckan/default/bin/activate | ||
echo "....instala y buildea ckan" | ||
pip install -r requirements.txt | ||
python setup.py install | ||
echo "....carga variables de entorno" | ||
set -o allexport | ||
source .env.development | ||
echo "....ejecuta migraciones" | ||
ckan -c test-core.ini db init | ||
echo "....ckan run" | ||
ckan -c test-core.ini run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
#/bin/bash | ||
echo "Ejecución de migraciones" | ||
ckan -c /usr/lib/who.ini db init | ||
|
||
#!/bin/bash | ||
echo "CKAN RUN" | ||
ckan -c /usr/lib/who.ini run | ||
ckan -c /usr/lib/ckan/config/who.ini run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters