Category : curl

I am not being able to get a proper reply from a dbpedia/spotlight docker image. I remember using the :databus tag a year or so ago and it was working on a UNIX environment, but now: sudo docker pull dbpedia/spotlight-english:databus yields Error response from daemon: pull access denied for dbpedia/spotlight-english, repository does not exist or ..

Read more

Welcome, I have a problem writing curl data to a file. while true; do curl -s –unix-socket /var/run/docker.sock "http://localhost/containers/s96/stats?stream=0" | tee -p /home/resources/s96.log 2>&1; sleep 2; done The only problem seems to be working is that when the script starts over, everything in the file is deleted for a while and then overwritten. I want ..

Read more

I am trying to execute composer update within a Docker container (FROM php:5.6-apache) in order to download private repositories, but I am getting as result: [ComposerDownloaderTransportException] curl error 60 while downloading https://company.com/packages.json: SSL certificate problem: certificate has expired I tried to download the certificate on curl website and add it on my php.ini file as ..

Read more

This is a linked question to my previous question RUN cmd and execute curl command in VB.NET. I have a vb.net very small application that makes a api call and prints the response. Module Module1 Sub Main() Dim curlApplicationPath = IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "curl.exe") Dim arguments = $"/k {curlApplicationPath} –location –request GET http://ip:port/" Process.Start("cmd.exe", arguments) End Sub ..

Read more

I have a docker file which is as follows FROM python:3.6.8 WORKDIR /app COPY requirements.txt /app/requirements.txt ADD local-module /app/local-module RUN python3 -m venv /opt/venv ADD . /app RUN . /opt/venv/bin/activate && pip install Cython && pip install -r requirements.txt && pip install /app/local-module && rm -rf /app/local-module && python /app/setup.py install CMD ["/opt/venv/bin/python3", "/app/module/app_runner.py", "–debug"] ..

Read more

I am newbie in Docker but I wanted to deploy a simple app on the cloud so I created this simple flask app like the below: import os from flask import Flask, jsonify, request from flask_restful import Api, Resource, reqparse import json app = Flask(__name__) api = Api(app) parser = reqparse.RequestParser() parser.add_argument(‘list’, type=list) @app.route(‘/’) def ..

Read more