Hi,
I asked this before, but I still have trouble with this.
What I ultimately want is what I used for years now: use the zero config tools
to point to my private repo and install my code and all its dependencies from a
single Metacello config.
Basically,
$vm $image config _CONFIG_REPO_ _CONFIG_NAME_ --username=_CONFIG_USER_
--password=_CONFIG_PASS_ --install=_CONFIG_VERSION_ --group=_CONFIG_GROUP_
towards a private server.
In the new world of git(hub)/tonel/iceberg I am trying the following (not using
the 'config' but the new 'metacello' command line handler):
$ uname -a
Linux audio359 4.15.0-39-generic #42-Ubuntu SMP Tue Oct 23 15:48:01 UTC 2018
x86_64 x86_64 x86_64 GNU/Linux
$ curl get.pharo.org/64/70+vm | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3054 100 3054 0 0 57622 0 --:--:-- --:--:-- --:--:-- 57622
Downloading the latest 70 Image:
http://files.pharo.org/get-files/70/pharo64.zip
Pharo.image
Downloading the latest pharoVM:
http://files.pharo.org/get-files/70/pharo64-linux-stable.zip
pharo-vm/pharo
Creating starter scripts pharo and pharo-ui
$ ./pharo Pharo.image printVersion
[version] 'Pharo7.0.4'
'Pharo-7.0.4+build.168.sha.ccd1f6489120f58ddeacb2cac77cd3a0f0dcfbe6 (64 Bit)'
$ ./pharo Pharo.image save build
$ ./pharo build.image metacello install github://svenvc/ztimestamp
BaselineOfZTimestamp
3. using HTTPS instead SSH (Just use an url in the form HTTPS://etc.git). I
will try to clone the HTTPS variant.
Fetched -> BaselineOfZTimestamp-CompatibleUserName.1554735117 ---
https://github.com/svenvc/ztimestamp.git[master] ---
https://github.com/svenvc/ztimestamp.git[master]
Loaded -> BaselineOfZTimestamp-CompatibleUserName.1554735117 ---
https://github.com/svenvc/ztimestamp.git[master] ---
https://github.com/svenvc/ztimestamp.git[master]
Loading baseline of BaselineOfZTimestamp...
Fetched -> ZTimestamp-CompatibleUserName.1554735117 ---
https://github.com/svenvc/ztimestamp.git[master] ---
https://github.com/svenvc/ztimestamp.git[master]
Loaded -> ZTimestamp-CompatibleUserName.1554735117 ---
https://github.com/svenvc/ztimestamp.git[master] --- cache
...finished baseline
$ ./pharo build.image eval ZTimestamp now
2019-10-25T12:28:34Z
So although it gave a warning, it worked fine.
The warning said,
using HTTPS instead SSH (Just use an url in the form HTTPS://etc.git). I will
try to clone the HTTPS variant.
so let's try that after cleaning everything:
$ rm -rf pharo-local/ build.*
$ ./pharo Pharo.image save build
$ ./pharo build.image metacello install
https://github.com/svenvc/ztimestamp.git BaselineOfZTimestamp
...RETRY->BaselineOfZTimestamp
...RETRY->BaselineOfZTimestamp
...FAILED->BaselineOfZTimestampCould not resolve: BaselineOfZTimestamp
[BaselineOfZTimestamp] in /home/sven/pharo7/pharo-local/package-cache
https://github.com/svenvc/ztimestamp.git
MetacelloFetchingMCSpecLoader(MetacelloCommonMCSpecLoader)>>retryingResolvePackageSpecReferences:gofer:
WTF ? Why does this not work (I can perfectly git clone that URL) ?
Of course, this would just be the first step, eventually I want to use my own
private server with a URL like
https://deploy:[email protected]/scm/xyz/xyz-pharo.git
How do you build/deploy non-public production code using the command line ?
Help would be much appreciated.
Sven