iCommands on Mac 2022

53 views
Skip to first unread message

Dmitri Darine

unread,
Oct 18, 2022, 3:03:52 PM10/18/22
to iRODS-Chat
Hi
What's the modern/recommended/easiest way to get iCommands on Mac?

Best regards
D

Terrell Russell

unread,
Oct 18, 2022, 9:07:06 PM10/18/22
to irod...@googlegroups.com
Hi Dmitri,

We have not packaged arm64 binaries - so you'll need to use the x86/amd64 binaries...

I've gotten this to work on an M1 Mac via Docker... (the key was the --platform flag):

$ docker run -d --platform linux/amd64 --name ub20icommands ubuntu:20.04 tail -f /dev/null
$ docker exec -it ub20icommands /bin/bash

then within the container, install the iCommands

# apt-get update
# apt-get install -y wget sudo lsb-release gnupg
# wget -qO - https://packages.irods.org/irods-signing-key.asc | sudo apt-key add -
# echo "deb [arch=amd64] https://packages.irods.org/apt/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/renci-irods.list
# apt-get update
# apt-get install -y irods-icommands

then back on the host

$ docker exec -it ub20icommands iinit

then the rest of the iCommands are available

$ docker exec -it ub20icommands ils
/tempZone/home/rods:

Note... putting and getting files are done from 'within' the container... so if you need to move data, you'll probably want to use a volume mount or docker cp to share between host and container.

$ docker cp filetoput.txt ub20icommands:/
$ docker exec -it ub20icommands iput filetoput.txt foo
$ docker exec -it ub20icommands ils
/tempZone/home/rods:
  foo


Terrell





--
--
The Integrated Rule-Oriented Data System (iRODS) - https://irods.org
 
iROD-Chat: http://groups.google.com/group/iROD-Chat
---
You received this message because you are subscribed to the Google Groups "iRODS-Chat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to irod-chat+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/irod-chat/ca981c1b-a09c-43a2-b654-6aab3abd8218n%40googlegroups.com.

Illyoung Choi

unread,
Oct 18, 2022, 10:00:37 PM10/18/22
to iRODS-Chat
Gocommands is a reimplementation of iCommands in golang which is portable. 
Although it does not provide all functionalities of iCommands, Gocommands is an available option if you want to just want simple data transfer jobs.


Illyoung Choi

Dmitri Darine

unread,
Oct 22, 2022, 12:15:37 PM10/22/22
to iRODS-Chat
Thank you guys :)

John Constable

unread,
Oct 27, 2022, 2:12:43 PM10/27/22
to iRODS-Chat
Hi Terrell, do you mind if I put this in the Unofficial iRODS Documentation?


cheers

John

Terrell Russell

unread,
Oct 27, 2022, 5:10:56 PM10/27/22
to irod...@googlegroups.com
No problem... go for it.

Terrell


Reply all
Reply to author
Forward
0 new messages