mongo-express / mongo-express-docker

a dockerized mongo-express for viewing mongoDB in the browser
MIT License
202 stars 93 forks source link

Add inital "generate-stackbrew-library.sh" script #41

Closed tianon closed 4 years ago

tianon commented 4 years ago

This is intended to be run to generate the contents of https://github.com/docker-library/official-images/blob/master/library/mongo-express.

(As mentioned in https://github.com/mongo-express/mongo-express-docker/pull/40#issuecomment-580989077)

Example output:

$ ./generate-stackbrew-library.sh
# this file is generated via https://github.com/mongo-express/mongo-express-docker/blob/2abe17be545f43d50c17a188ac781174a7ea3e9d/generate-stackbrew-library.sh

Maintainers: Nick Cox <nickcox1008@gmail.com> (@knickers)
GitRepo: https://github.com/mongo-express/mongo-express-docker.git
GitCommit: 2abe17be545f43d50c17a188ac781174a7ea3e9d

Tags: 0.51.0, 0.51, latest
Architectures: amd64, arm64v8
$ diff -u <(bashbrew cat mongo-express) <(bashbrew cat <(./generate-stackbrew-library.sh))
--- /dev/fd/63  2020-01-31 20:22:39.646681867 -0800
+++ /dev/fd/62  2020-01-31 20:22:39.646681867 -0800
@@ -1,6 +1,6 @@
 Maintainers: Nick Cox <nickcox1008@gmail.com> (@knickers)
+GitRepo: https://github.com/mongo-express/mongo-express-docker.git
+GitCommit: 2abe17be545f43d50c17a188ac781174a7ea3e9d

-Tags: 0.49.0, 0.49, latest
+Tags: 0.51.0, 0.51, latest
 Architectures: amd64, arm64v8
-GitRepo: https://github.com/mongo-express/mongo-express-docker.git
-GitCommit: b089fe7708d9dd619d648a6ec226fe0175b27740
tianon commented 4 years ago

I've got another change to explode the architectures to all those supported by the base but I'm going to hold off proposing that one until we've stabilized and gotten things updated. 😅

(and have time to test more of them to make sure they actually work)

knickers commented 4 years ago

Oh yeah, I see that the JSON coming from NPM registry can have many versions available. Cool :sunglasses: