Commit 0f42078d authored by Vince Tozzi's avatar Vince Tozzi
Browse files

Resolvendo problem na delete do midia

Showing with 28 additions and 15 deletions
+28 -15
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
......@@ -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,
......
......@@ -6,5 +6,5 @@ python-multipart
pytest
aiofiles
python-slugify
datalad
#datalad
shortuuid
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment