|
|
@@ -111,33 +111,33 @@ Options:
|
|
|
Disable the :ref:`vector-to-slice` optimization
|
|
|
|
|
|
|
|
|
-Running Solang from docker image
|
|
|
-________________________________
|
|
|
+Running Solang using container
|
|
|
+______________________________
|
|
|
|
|
|
-First pull the last Solang image from
|
|
|
-`docker hub <https://hub.docker.com/repository/docker/hyperledgerlabs/solang/>`_:
|
|
|
+First pull the last Solang container from
|
|
|
+`solang containers <https://github.com/hyperledger-labs/solang/pkgs/container/solang>`_:
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
- docker pull hyperledgerlabs/solang
|
|
|
+ docker pull ghcr.io/hyperledger-labs/solang
|
|
|
|
|
|
And if you are using podman:
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
- podman image pull hyperlederlabs/solang
|
|
|
+ podman image pull ghcr.io/hyperledger-labs/solang
|
|
|
|
|
|
Now you can run Solang like so:
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
- docker run --rm -it hyperledgerlabs/solang --version
|
|
|
+ docker run --rm -it ghcr.io/hyperledger-labs/solang --version
|
|
|
|
|
|
Or podman:
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
- podman container run --rm -it hyperledgerlabs/solang --version
|
|
|
+ podman container run --rm -it ghcr.io/hyperledger-labs/solang --version
|
|
|
|
|
|
If you want to compile some solidity files, the source file needs to be
|
|
|
available inside the container. You can do this via the -v command line.
|
|
|
@@ -146,10 +146,10 @@ to your solidity files:
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
- docker run --rm -it -v /local/path:/sources hyperledgerlabs/solang -o /sources /sources/flipper.sol
|
|
|
+ docker run --rm -it -v /local/path:/sources ghcr.io/hyperledger-labs/solang -o /sources /sources/flipper.sol
|
|
|
|
|
|
On Windows, you need to specify absolute paths:
|
|
|
|
|
|
.. code-block:: text
|
|
|
|
|
|
- docker run --rm -it -v C:\Users\User:/sources hyperledgerlabs/solang -o /sources /sources/flipper.sol
|
|
|
+ docker run --rm -it -v C:\Users\User:/sources ghcr.io/hyperledger-labs/solang -o /sources /sources/flipper.sol
|