Table of Contents |
---|
IMPORTANT: There could be a conflict between the installation of AccessMod via the electron launcher and this one. This method will always work, but the access through the electron launcher could get jammed. Ideally, chose one of the two methods to install, run, and update AccessMod.
In Windows
First use:
This procedure can be done either in the Command Prompt or in Windows PowerShell. Both programs are installed by default in Windows.
The prerequisites for this procedure are:
- Download and install Docker Desktop, which includes by default the Docker Compose.
- Download a pre-configured ‘
docker-compose.yml
’ file from https://www.dropbox.com/preview/Public/docker-compose.yml. This file commands the download and use of the latest version of AccessMod. - Optionally you can create the ‘
docker-compose.yml
’ yourself by copying the following text into a code text editor such as Notepad++ keeping the exact file name, extension, and language (YAML):- By default this code requests the latest version in '
image: fredmoser/accessmod:latest
', but you can also load one of the previous available versions replacing 'latest' for:5.7.0
,5.7.17
,5.7.18
, or5.8.0
- By default this code requests the latest version in '
Code Block | ||
---|---|---|
| ||
version: "3.8" services: am5: image: fredmoser/accessmod:latest ports: - "3180:3100" command: ["Rscript", "--vanilla", "run.r", "3100", "5100", "5180"] volumes: - am5_dev_tmp:/tmp - am5_dev_data:/data/dbgrass - am5_dev_cache:/data/cache - am5_dev_logs:/data/logs volumes: am5_dev_tmp: am5_dev_data: am5_dev_cache: am5_dev_logs: |
- Place the ‘
docker-compose.yml
’ file you downloaded or created in a folder easy to locate (ideally not inside a long series of sub-folders). - Start Docker desktop.
- Open Windows ‘PowerShell’ or the Command Prompt app, e.g. by opening the Windows menu and typing ‘PowerShell’.
- From the command line navigate to the folder where you placed the ‘
docker-compose.yml
’ file using the following commands:- Typing ‘
cd..
’ followed by enter, to go to an upper level in the file tree, namely towards your main drive C: - Typing ‘
ls
’ followed by enter, to show a list of the files and folders contained in your current folder. This gives you information regarding the folders you can go into. - Typing ‘
cd NameOfFolder
’ followed by enter, to access one of the folders (if any available) inside your current folder. For example:cd Documents
- Typing ‘
- When you reach the folder where the ‘
docker-compose.yml
’ file is stored, type in the command line: ‘docker compose up
’, followed by enter. The pull and compilation will start showing a screen similar to this one (example with PowerShell):- This will create an image in Docker, and a container where your data will be stored.
- For this first run do not close PowerShell, as it controls the running image.
- To start working in AccessMod, open your browser and type in the address bar: ‘
localhost:3180
’ followed by enter. The latest version of AccessMod will open. - To finalize your work and close the virtual machine correctly, go to your PowerShell command line and type the key combination ctrl + c, wait for a few seconds until the process closes up, then type: ‘
exit
’ or close the window.
Second and continuous use
The previous process can be run every time, and Docker compose will only download and update the necessary files, in case there is a minor or major update. If there is no update, it will start the container immediately.
However, after the first installation, the image downloaded before with PowerShell can now be run directly from Docker following the next steps:
- Start Docker desktop.
- Go to ‘Containers’ on the left side list of the main screen. There you will find the container created before.
- Start AccessMod by clicking the start icon in the actions column.
- Open your browser and type:
localhost:3180
- After you finished, close the browser and stop the image using the stop icon in the action column for the container you started before.
- Start AccessMod by clicking the start icon in the actions column.
In Apple
AccessMod installation and running
- Download the pre-configured ‘
docker-compose.yml
’ file from https://www.dropbox.com/preview/Public/docker-compose.yml, and save the file in a known location. - Alternatively, open a text editor e.g. the TextEdit app, create the YAML file by typing:
touch docker-compose.yml
. Then edit the file and copy/paste the content in the Windows section above. - In the Terminal, navigate to location of your ‘
docker-compose.yml
’ file and type:docker compose up
- The data pull and compilation will start.
- To start working in AccessMod, open your browser and type in the address bar: ‘
localhost:3180
’ followed by enter. The latest version of AccessMod will open. - To finalize your work and close the virtual machine correctly, go to your Terminal and type the key combination ctrl + c, wait for a few seconds until the process closes up, then type: ‘
exit
’ or close the window.
Second time and continuous use
After the first installation, the image downloaded before with the Terminal can now be run directly from Docker.
- Start Docker Desktop.
- Go to ‘Containers’ on the left side list of the main screen. There you will find the container created before, with the name of the folder from where it was created.
- Start AccessMod by clicking the start icon in the actions column.
- Open your browser and type:
localhost:3180
- After you finished, close the browser and stop the image using the stop icon in the action column for the container you started before.
In Ubuntu
AccessMod installation and running
- Download the pre-configured ‘
docker-compose.yml
’ file from https://www.dropbox.com/preview/Public/docker-compose.yml, and save the file in a known location. - Alternatively, open the text editor in Ubuntu and copy/paste the
docker-compose.yml
content in the Windows section above. Then select the language as YAML and save the file in a known location with the name: ‘docker-compose.yml
’. - In the Terminal, navigate to location of your ‘
docker-compose.yml
’ file and type:docker compose up
- The data pull and compilation will start.
- To start working in AccessMod, open your browser and type in the address bar: ‘
localhost:3180
’ followed by enter. The latest version of AccessMod will open. - To finalize your work and close the virtual machine correctly, go to your Terminal and type the key combination ctrl + c, wait for a few seconds until the process closes up, then type: ‘
exit
’ or close the window.
Second time and continuous use
After the first installation, the image downloaded before with the Terminal can now be run directly from Docker.
- Start Docker Desktop.
- Go to ‘Containers’ on the left side list of the main screen. There you will find the container created before, with the name of the folder from where it was created.
- Start AccessMod by clicking the start icon in the actions column.
- Open your browser and type:
localhost:3180
- After you finished, close the browser and stop the image using the stop icon in the action column for the container you started before.
- From the Terminal, follow these simple steps (more details in this https://docs.docker.com/engine/reference/commandline/container_start/):
Start Docker with:
$systemctl --user start docker-desktop
- Find the name of the container you want to start with:
$docker container ls
- Start your container with:
$docker container start <ContainerName>
e.g. carlos-am-5-1 - Open your browser and type:
localhost:3180
- Finally, stop your container with:
$docker container stop <ContainerName>