profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/apocas/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Pedro Dias apocas PTisp - @ptisp Portugal CTO at @ptisp

apocas/dockerode 3319

Docker + Node = Dockerode (Node.js module for Docker's Remote API)

apocas/docker-modem 156

Docker Remote API network stack driver.

apocas/dockerode-compose 26

docker-compose in Node.js using dockerode

apocas/dashode 11

Simple HTTP daemon realtime web dashboard for clf based webservers.

apocas/dashode2 8

Realtime dashboard for nginx and other clf based webservers.

apocas/asusipmiploiter 6

ASUS iKVM/IPMI password disclosure PoC

apocas/firecrackerode 6

Firecracker + Node = Firecrackerode (Node.js module for Amazon's Firecracker MicroVM platform)

apocas/ipmifinder 6

Fast multi-threaded IPMI finder [tool]

apocas/lxjs-dns 5

Docker.io LXJS workshop DNS Server

apocas/capi 3

Python daemon that watches and dispatch fresh entries in your logs to Redis

push eventapocas/docker-modem

Pedro Dias

commit sha 940414955df16d662be3e6e487c827a05216f750

version bump

view details

push time in 12 days

push eventapocas/docker-modem

Robert Günzler

commit sha cb46ed02d64c37a00311b4a4bb5108d22d43d993

Add exception to json-encode cachefrom option After my previous PR which excludes array fields from being transformed to JSON this was broken.

view details

Pedro Dias

commit sha 8556ad38cf5a022b22f50920fae6b08d2ac3f207

Merge pull request #134 from balena-io-modules/rgz/fix-cachefrom-encoding Add exception to json-encode cachefrom option

view details

push time in 12 days

PR merged apocas/docker-modem

Add exception to json-encode cachefrom option

After my previous PR which excludes array fields from being transformed to JSON this was broken.

Sorry, I should have done a full test of all the options before submitting the last patch :P

+11 -2

1 comment

1 changed file

robertgzr

pr closed time in 12 days

pull request commentapocas/docker-modem

Add exception to json-encode cachefrom option

Humm interesting tests should have detected this :)

robertgzr

comment created time in 12 days

pull request commentapocas/dockerode

Allow aborting all API requests by passing an abortSignal

Published

pimterry

comment created time in 13 days

pull request commentapocas/docker-modem

Don't json-encode array option fields

Published

robertgzr

comment created time in 13 days

push eventapocas/dockerode

Pedro Dias

commit sha dcdab185084f494eac5048e1d7eaee04d643e9a0

version bump

view details

push time in 13 days

push eventapocas/docker-modem

Pedro Dias

commit sha c1b3355067e386af026262f89f716eb230708cd0

version bump

view details

Pedro Dias

commit sha b187a1e78d838f8f72450b8f6048950e5f99596a

Merge branch 'master' of https://github.com/apocas/docker-modem

view details

push time in 13 days

push eventapocas/docker-modem

Robert Günzler

commit sha 95b23ac01192f584de5d413aa47b4b1b646143b3

Don't json-encode array option fields Previously there was a check if the options field has the key `t` to avoid mistransforming the tags list. On build `extra_hosts` are passed as a JSON string and wouldn't be applied. We resolve this through checking for an array. Fixes https://github.com/apocas/dockerode/issues/605

view details

Pedro Dias

commit sha 55c6faff392e055b51946d4fc279fab9130e5445

Merge pull request #133 from balena-io-modules/rgz/fix-build-querystring Don't json-encode array option fields

view details

push time in 13 days

issue closedapocas/dockerode

How to use extrahosts propery in image build

I am trying to supply multiple extra hosts to docker image build. I am using extrahosts property, which is string, so I am able to add one record like this:

foo.com:x.x.x.x

How do I supply more of them? I have tried:

  • comma separated string: foo.com:x.x.x.x,bar.com:y.y.y.y
  • space separated string: foo.com:x.x.x.x bar.com:y.y.y.y
  • array of strings: [foo.com:x.x.x.x, bar.com:y.y.y.y]

All of the above end with error during image build like this (with respective variations):

ERROR: Docker image build failed: invalid IP address in add-host: "0.0.0.0\"]"

Can you please point me to right direction? Thank you!

closed time in 13 days

dragonraid

PR merged apocas/docker-modem

Don't json-encode array option fields

Previously there was a check if the options field has the key t to avoid mistransforming the tags list. On build extra_hosts are passed as a JSON string and wouldn't be applied.

We resolve this through checking for an array.

Fixes https://github.com/apocas/dockerode/issues/605

+1 -1

0 comment

1 changed file

robertgzr

pr closed time in 13 days

push eventapocas/dockerode

Tim Perry

commit sha 323ba36402911a71a4e2fc9671f5968b065c9acf

Allow aborting all API requests by passing an abortSignal This must be a signal from a AbortController - either the built-in controller available in Node 16+, or a compatible polyfill.

view details

Pedro Dias

commit sha 9a50c266497860d15a4ef2e213d54b4684db5e30

Merge pull request #630 from pimterry/abort Allow aborting all API requests by passing an abortSignal

view details

push time in 13 days

PR merged apocas/dockerode

Allow aborting all API requests by passing an abortSignal

This adds support for an abortSignal option in every API method. This fixes #629.

This depends on the docker-modem change in https://github.com/apocas/docker-modem/pull/132/. You'll need to link that dependency in to test this successfully.

I've added a test just for the container.wait() method, since that's the most obviously interesting use case, but I think being able to abort all types of requests can be useful in various different contexts.

+239 -72

0 comment

13 changed files

pimterry

pr closed time in 13 days

issue closedapocas/dockerode

Allow aborting requests

For some commands, it would be useful to be able to abort them before they complete. I'm specifically thinking of wait, but I'm sure there's others too. There's been previous requests for this with image building, e.g. #506, #269

I think it should be easy to do so by accepting a { signal: AbortSignal } option (like most promisified web APIs & modern Node.js APIs do) and passing that through directly to the HTTP requests, to become the signal option for http.request.

With that, everything should Just Work to allow API aborting easily everywhere. The end user code would look something like:

const Docker = require('dockerode');
const docker = new Docker();

const abortController = new AbortController();
docker.getContainer('abc').wait({ signal: abortController.signal })

// Later:
abortController.abort(); // Ends the pending request

AbortController is supported in all v15 & v16 node versions, and in v14 behind a flag, and it's the standard way to abort all promisified APIs. Although that doesn't go back to node v8 (as Dockerode appears to support) there's no compatibility risk, since we wouldn't actually need to reference it here ourselves. We just need to pass through the signal property to the HTTP APIs. Any user using v15/v16 version, or using v14 with either the flag enabled or their own polyfill would be able to use it immediately. Anybody on older unsupported versions wouldn't have a problem, they just can't use it without a modern Node version.

Would you be open to that?

closed time in 13 days

pimterry

push eventapocas/docker-modem

Tim Perry

commit sha 0f6fcbf98cc5bf6c83c989dcb2192ef747084d5c

Add support for abortSignal, to abort requests with an AbortController

view details

Pedro Dias

commit sha cd6e76b4cdeddab689e4546c20da8fef9174991a

Merge pull request #132 from pimterry/abort Add support for abortSignal, to abort requests with an AbortController

view details

push time in a month

PR merged apocas/docker-modem

Add support for abortSignal, to abort requests with an AbortController

This will make it possible to abort Dockerode requests (https://github.com/apocas/dockerode/issues/629). In practice this looks like:

const abortController = new AbortController();
modem.dial({
  // ...
  abortSignal: abortController.signal
});

// Later, abort the ongoing request:
abortController.abort();
// -> The request returns an AbortError (code: ABORT_ERROR)

I've tested this in Dockerode already, and there will be PR there coming shortly that uses this.

Using this in practice requires either Node 16, or Node 14+ with your own AbortController implementation that polyfills the standard (probably https://www.npmjs.com/package/node-abort-controller).

In other environments nothing breaks, you just can't abort requests, because the signal option is ignored by the HTTP module.

+9 -0

1 comment

1 changed file

pimterry

pr closed time in a month

pull request commentapocas/docker-modem

Add support for abortSignal, to abort requests with an AbortController

👍 Will ping when published.

pimterry

comment created time in a month

pull request commentapocas/dockerode-compose

Initial TypeScript support

I'm definitely not a TypeScript guy and it's going to be something that will not be maintained :)

The idea is to follow the same development rules we follow in dockerode. Can't the TypeScript fellows use DefinitelyTyped like dockerode? Example: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/dockerode/index.d.ts

michaeldannunzio

comment created time in 2 months

issue commentapocas/dockerode

Allow aborting requests

Sure, I think it's a good improvement. Without breaking changes is even better :)

pimterry

comment created time in 2 months

push eventptisp/node-globalsign

Joao Graca

commit sha ae209623cc3412ebf3da86f76c6397a939140a55

console.log cleanup

view details

Joao Graca

commit sha 7530ab8d09b4b91844766d4d6f5d8956ca49f657

error gets lost

view details

Pedro Dias

commit sha b9fe7a14c745e35e48affcbecf3968a03f9d9c71

Merge pull request #11 from ptisp/joao error gets lost

view details

push time in 2 months

PR merged ptisp/node-globalsign

error gets lost
+1 -6

0 comment

1 changed file

joaograca

pr closed time in 2 months

push eventapocas/node-whmcs

Pedro Dias

commit sha f6f951bdf9204dc3900aa1f264ccb115207b7802

promotions test

view details

push time in 2 months

push eventapocas/node-whmcs

Joao Graca

commit sha 6e2492f1726116b80b22ac67c4bcc1d24c279a09

WIP - whmcs 8 refactor

view details

Joao Graca

commit sha 6f2cc23cf22aff2b3c67dcb63732e979c939aa13

WIP - refactor

view details

Joao Graca

commit sha 685787f9fca528a7e5a407b38a3334879afea5ea

axios replaces request

view details

Joao Graca

commit sha bbbfc264c44b6d5b06f3cf406e8801e2a581065f

test

view details

Joao Graca

commit sha 93098e19d9cb87c12f220306373830c6fb6e751b

test fix

view details

Joao Graca

commit sha d87bf588a698924943e8dd933dc5bafdd42e758a

authentication methods support authentication with api credentials and login credentials

view details

Joao Graca

commit sha bb718d286921456e1be227904b1acdbe31aa324f

password parameter accepts md5 hashed string

view details

Joao Graca

commit sha 3e21785ceace757ef3050557b1a66460598d2276

access key parameter

view details

Joao Graca

commit sha 138de97178449d1a4c4b4e532c041217daea9926

Update README.md

view details

Joao Graca

commit sha 933d38c852cc9163302041ce3a67ff0bff2ca0c6

var replaced by const/let

view details

Pedro Dias

commit sha 3fc359cad65081ca55ab326aaaa8ddff32d44bda

Merge pull request #40 from joaograca/whmcs8 Whmcs8

view details

push time in 3 months

PR merged apocas/node-whmcs

Whmcs8
+5495 -2254

0 comment

48 changed files

apocas

pr closed time in 3 months

PR opened apocas/node-whmcs

Whmcs8
+5495 -2254

0 comment

48 changed files

pr created time in 3 months

push eventapocas/node-whmcs

dependabot[bot]

commit sha 61943e3aa4539857b2f0fcde386c95818c925a24

Bump glob-parent from 5.1.1 to 5.1.2 Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2. - [Release notes](https://github.com/gulpjs/glob-parent/releases) - [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md) - [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2) --- updated-dependencies: - dependency-name: glob-parent dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>

view details

Pedro Dias

commit sha 2e22392333801cc5477fef155ada4e632caab441

Merge pull request #39 from apocas/dependabot/npm_and_yarn/glob-parent-5.1.2 Bump glob-parent from 5.1.1 to 5.1.2

view details

push time in 3 months

PR merged apocas/node-whmcs

Bump glob-parent from 5.1.1 to 5.1.2 dependencies

Bumps glob-parent from 5.1.1 to 5.1.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/gulpjs/glob-parent/releases">glob-parent's releases</a>.</em></p> <blockquote> <h2>v5.1.2</h2> <h3>Bug Fixes</h3> <ul> <li>eliminate ReDoS (<a href="https://github-redirect.dependabot.com/gulpjs/glob-parent/issues/36">#36</a>) (<a href="https://github.com/gulpjs/glob-parent/commit/f9231168b0041fea3f8f954b3cceb56269fc6366">f923116</a>)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md">glob-parent's changelog</a>.</em></p> <blockquote> <h3><a href="https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2">5.1.2</a> (2021-03-06)</h3> <h3>Bug Fixes</h3> <ul> <li>eliminate ReDoS (<a href="https://github-redirect.dependabot.com/gulpjs/glob-parent/issues/36">#36</a>) (<a href="https://github.com/gulpjs/glob-parent/commit/f9231168b0041fea3f8f954b3cceb56269fc6366">f923116</a>)</li> </ul> <h2><a href="https://www.github.com/gulpjs/glob-parent/compare/v5.1.2...v6.0.0">6.0.0</a> (2021-05-03)</h2> <h3>⚠ BREAKING CHANGES</h3> <ul> <li>Correct mishandled escaped path separators (<a href="https://github-redirect.dependabot.com/gulpjs/glob-parent/issues/34">#34</a>)</li> <li>upgrade scaffold, dropping node <10 support</li> </ul> <h3>Bug Fixes</h3> <ul> <li>Correct mishandled escaped path separators (<a href="https://github-redirect.dependabot.com/gulpjs/glob-parent/issues/34">#34</a>) (<a href="https://www.github.com/gulpjs/glob-parent/commit/32f6d52663b7addac38d0dff570d8127edf03f47">32f6d52</a>), closes <a href="https://github-redirect.dependabot.com/gulpjs/glob-parent/issues/32">#32</a></li> </ul> <h3>Miscellaneous Chores</h3> <ul> <li>upgrade scaffold, dropping node <10 support (<a href="https://www.github.com/gulpjs/glob-parent/commit/e83d0c5a411947cf69eb58f36349db80439c606f">e83d0c5</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/gulpjs/glob-parent/commit/eb2c439de448c779b450472e591a2bc9e37e9668"><code>eb2c439</code></a> chore: update changelog</li> <li><a href="https://github.com/gulpjs/glob-parent/commit/12bcb6c45c942e2d05fc1e6ff5402e72555b54b6"><code>12bcb6c</code></a> chore: release 5.1.2</li> <li><a href="https://github.com/gulpjs/glob-parent/commit/f9231168b0041fea3f8f954b3cceb56269fc6366"><code>f923116</code></a> fix: eliminate ReDoS (<a href="https://github-redirect.dependabot.com/gulpjs/glob-parent/issues/36">#36</a>)</li> <li><a href="https://github.com/gulpjs/glob-parent/commit/0b014a7962789b2d8f2cf0b6311f40667aecd62c"><code>0b014a7</code></a> chore: add JSDoc returns information (<a href="https://github-redirect.dependabot.com/gulpjs/glob-parent/issues/33">#33</a>)</li> <li><a href="https://github.com/gulpjs/glob-parent/commit/2b24ebd64b2a045aa167c825376335555da139fd"><code>2b24ebd</code></a> chore: generate initial changelog</li> <li>See full diff in <a href="https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

</details>

+3 -3

0 comment

1 changed file

dependabot[bot]

pr closed time in 3 months

push eventapocas/firecrackerode

dependabot[bot]

commit sha 811cee70b964b2f79146557f964cf2aa9fae010f

Bump lodash from 4.17.19 to 4.17.21 Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.21) Signed-off-by: dependabot[bot] <support@github.com>

view details

Pedro Dias

commit sha 5145dc539d6cde9b28b94394db0087e5bb833baa

Merge pull request #3 from apocas/dependabot/npm_and_yarn/lodash-4.17.21 Bump lodash from 4.17.19 to 4.17.21

view details

push time in 3 months

PR merged apocas/firecrackerode

Bump lodash from 4.17.19 to 4.17.21 dependencies

Bumps lodash from 4.17.19 to 4.17.21. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/lodash/lodash/commit/f299b52f39486275a9e6483b60a410e06520c538"><code>f299b52</code></a> Bump to v4.17.21</li> <li><a href="https://github.com/lodash/lodash/commit/c4847ebe7d14540bb28a8b932a9ce1b9ecbfee1a"><code>c4847eb</code></a> Improve performance of <code>toNumber</code>, <code>trim</code> and <code>trimEnd</code> on large input strings</li> <li><a href="https://github.com/lodash/lodash/commit/3469357cff396a26c363f8c1b5a91dde28ba4b1c"><code>3469357</code></a> Prevent command injection through <code>_.template</code>'s <code>variable</code> option</li> <li><a href="https://github.com/lodash/lodash/commit/ded9bc66583ed0b4e3b7dc906206d40757b4a90a"><code>ded9bc6</code></a> Bump to v4.17.20.</li> <li><a href="https://github.com/lodash/lodash/commit/63150ef7645ac07961b63a86490f419f356429aa"><code>63150ef</code></a> Documentation fixes.</li> <li><a href="https://github.com/lodash/lodash/commit/00f0f62a979d2f5fa0287c06eae70cf9a62d8794"><code>00f0f62</code></a> test.js: Remove trailing comma.</li> <li><a href="https://github.com/lodash/lodash/commit/846e434c7a5b5692c55ebf5715ed677b70a32389"><code>846e434</code></a> Temporarily use a custom fork of <code>lodash-cli</code>.</li> <li><a href="https://github.com/lodash/lodash/commit/5d046f39cbd27f573914768e3b36eeefcc4f1229"><code>5d046f3</code></a> Re-enable Travis tests on <code>4.17</code> branch.</li> <li><a href="https://github.com/lodash/lodash/commit/aa816b36d402a1ad9385142ce7188f17dae514fd"><code>aa816b3</code></a> Remove <code>/npm-package</code>.</li> <li>See full diff in <a href="https://github.com/lodash/lodash/compare/4.17.19...4.17.21">compare view</a></li> </ul> </details> <details> <summary>Maintainer changes</summary> <p>This version was pushed to npm by <a href="https://www.npmjs.com/~bnjmnt4n">bnjmnt4n</a>, a new releaser for lodash since your current version.</p> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

</details>

+3 -3

0 comment

1 changed file

dependabot[bot]

pr closed time in 3 months