Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
NPDD
baobaxia-mucua
Commits
0f42078d
Commit
0f42078d
authored
4 years ago
by
Vince Tozzi
Browse files
Options
Download
Email Patches
Plain Diff
Resolvendo problem na delete do midia
parent
92508f46
master
GUI-comentarios-mari
ajeitando-slug-smid
back-19_70-novas_entidades_e_request
dev
feature/midias-multiimages
fer-atualiza-dockerfile
fer-test-entrypoint
fer-update-docker-readme
fernao-blog-content
fernao-mocambola-content
multi-docker
multibalaio
revert-ce040296
ryru-deploy
saci-initial-tour
saci-reescreve-testes-entrypoint
saci-refactor-entrypoint
saci-squash-vince-oauth
vince-oauth2
vince-relacoes
vince-saci-rebase-refactor-mucua-balaio-mocambola
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+20
-8
Dockerfile
baobaxia/root.py
+7
-6
baobaxia/root.py
requirements/common.txt
+1
-1
requirements/common.txt
with
28 additions
and
15 deletions
+28
-15
Dockerfile
View file @
0f42078d
FROM
debian:buster
RUN
apt-get update
RUN
apt-get
install
-y
gpg
RUN
echo
"deb http://neuro.debian.net/debian data main"
>
/etc/apt/sources.list.d/neurodebian.list
RUN
echo
"deb http://neuro.debian.net/debian buster main"
>
/etc/apt/sources.list.d/neurodebian.list
RUN
apt-key adv
--recv-keys
--keyserver
hkp://pool.sks-keyservers.net:80 0xA5D32F012649A5A9
# RUN apt-get update
# RUN apt-get install -y gpg
# RUN echo "deb http://neuro.debian.net/debian data main" > /etc/apt/sources.list.d/neurodebian.list
# RUN echo "deb http://neuro.debian.net/debian buster main" > /etc/apt/sources.list.d/neurodebian.list
# RUN apt-key adv --recv-keys --keyserver hkp://pool.sks-keyservers.net:80 0xA5D32F012649A5A9
# RUN apt-get update
# RUN apt-get install -y --force-yes git-annex-standalone --no-install-recommends
RUN
apt-get update
RUN
apt-get
install
-y
--force-yes
git-annex-standalone
RUN
echo
"deb http://deb.debian.org/debian buster-backports main"
>
/etc/apt/sources.list.d/buster-backports.list
RUN
apt-get update
RUN
apt-get
install
-y
python3-pip
RUN
apt-get
-t
buster-backports
install
-y
git-annex
COPY
requirements.txt /
COPY
requirements/* /requirements/
RUN
pip
install
-r
/requirements.txt
RUN
pip3
install
-r
/requirements.txt
RUN
pip3
install
git+https://github.com/datalad/datalad
RUN
pip3
install
git+http://labmocambos.taina.net.br/npdd/baobaxia-mucua
EXPOSE
80
COPY
./baobaxia /baobaxia
RUN
criar_mucua
--path
=
'data/bbx/balaios'
--balaio
=
'Rede Mocambos Acervo'
\
--mucua
=
'Abdias Nascimento'
--mocambo
=
'Casa de Cultura Tainã'
\
--mocambola
=
'vince'
--email
=
'vince@mocambos.net'
--password
=
'livre'
\
--smid_len
=
13
--slug_name_len
=
21
--slug_smid_len
=
5
--slug_sep
"_"
CMD
["uvicorn", "baobaxia.acervo:api", "--host", "0.0.0.0", "--port", "80"]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
baobaxia/root.py
View file @
0f42078d
...
...
@@ -500,14 +500,15 @@ class Baobaxia():
balaio
=
balaio_slug
,
mucua
=
mucua_slug
,
model
=
model
,
mocambola
=
session
.
mocambola
).
drop_saber
(
path
)
# Sankofa.remove(saberes=[dataset,], mocambola=session.mocambola,
# config=self.config)
mocambola
=
session
.
mocambola
)
Sankofa
.
remove
(
saberes
=
[
self
.
saberes
[
balaio_slug
][
mucua_slug
][
field_name
][
path
]],
mocambola
=
session
.
mocambola
,
config
=
self
.
config
)
del
self
.
saberes
[
balaio_slug
][
mucua_slug
][
field_name
][
path
]
field_name
][
path
]
dataset
.
drop_saber
(
path
)
setattr
(
self
,
'del_'
+
field_name
,
del_method_template
)
def
_put_mocambola_saber
(
self
,
*
,
username
:
str
,
balaio_slug
:
Optional
[
str
]
=
None
,
...
...
This diff is collapsed.
Click to expand it.
requirements/common.txt
View file @
0f42078d
...
...
@@ -6,5 +6,5 @@ python-multipart
pytest
aiofiles
python-slugify
datalad
#
datalad
shortuuid
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help