orientechnologies / orientdb-docker

OrientDB running in a docker container
MIT License
63 stars 63 forks source link

New structure proposal for dockerfile starting with 3.0 #42

Closed 33Fraise33 closed 6 years ago

33Fraise33 commented 6 years ago

I added some more variables which should make it easier to upgrade to new versions.

MD5 & SHA1 hashes are downloaded with the package itself for the correct version. Also changed tp version to general community version as a separate TP version seems more appropriate.

Due to these changes it should be possible to just change the version number in the dockerfile for future releases

luigidellaquila commented 6 years ago

Hi @33Fraise33

Thank you very much, we were thinking of switching to the standard community by default and have a separate dockerfile for tp3, so it's definitely a 👍 I'll check it an merge asap

Thanks again!

Luigi

luigidellaquila commented 6 years ago

Hi @33Fraise33

I did some research and I found out that we cannot calculate the MD5 and SHA1 this way, for a security reason. The checksums are needed only to make sure that, in case the repo from where you download the artifacts is someway compromised (eg. a hacker replaces the artifacts, or a DNS attack lets you point to a malicious repo), a manipulated artifact won't match the checksum. As you can understand, if you download the checksums from the same repo, all this does not apply anymore, to the only purpose of the checksum is completely missed.

I'm closing this PR, but I'm also setting the standard Community edition as a default, as it makes a lot more sense

Thanks

Luigi

33Fraise33 commented 6 years ago

Hello,

Thanks for the explanation. Good to know. Thanks for changing to community edition!