Skip to content

Commit

Permalink
Change port number from 5000 to 80.
Browse files Browse the repository at this point in the history
  • Loading branch information
javiarrobas committed Oct 4, 2024
1 parent 709d5a1 commit 6eefb08
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Running BOPTEST locally is substantially faster

1) Create a conda environment from the `environment.yml` file provided (instructions [here](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-from-an-environment-yml-file)).
2) Run a BOPTEST case with the building emulator model to be controlled (instructions [here](https://github.com/ibpsa/project1-boptest/blob/master/README.md)).
3) Check out the `master` branch of this repository and run the example above replacing the url to be `url = 'http://127.0.0.1:5000'` and avoiding the `testcase` argument to the `BoptestGymEnv` class.
3) Check out the `master` branch of this repository and run the example above replacing the url to be `url = 'http://127.0.0.1:80'` and avoiding the `testcase` argument to the `BoptestGymEnv` class.

## Quick-Start (running BOPTEST locally in a vectorized environment)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"\n",
"📌 **Note**: This tutorial is prepared for use with BOPTEST v0.6.0.\n",
"and uses a web-based version of BOPTEST (called \"BOPTEST-Service\") as not to require installation of any BOPTEST software on a user's own device. It is also possible to use BOPTEST on a user's own (local) device. \n",
"Both the web-based and local versions have the same functionality, and will produce the same results, with only small changes in the API (changing the BOPTEST-service url to your localhost url, that is, to: `http://127.0.0.1:5000/<request>`). The tutorial is continuously updated to work with the latest BOPTEST versions. See [the release notes](https://github.com/ibpsa/project1-boptest-gym/blob/master/releasenotes.md) for the version history.\n",
"Both the web-based and local versions have the same functionality, and will produce the same results, with only small changes in the API (changing the BOPTEST-service url to your localhost url, that is, to: `http://127.0.0.1:80/<request>`). The tutorial is continuously updated to work with the latest BOPTEST versions. See [the release notes](https://github.com/ibpsa/project1-boptest-gym/blob/master/releasenotes.md) for the version history.\n",
"\n",
"🎥 **Video**: An explanatory video of this tutorial can be seen [here](https://drive.google.com/file/d/1lvCVQef_kctwCagA5QOVj7QljHQ1xKUQ/view?usp=sharing) for the CCAI2022 Summer School on August 18, 2022. The video starts with a one-hour lecture on the application of machine learning in buildings. The part of BOPTEST-Gym follows right after and lasts for 1.5 hours. Please note that the software version used in the video is v0.2.0. The framework and tutorial have been updated since then so you may notice slight differences in the content and interface. However, the main concepts and explanation behind remains the same. \n"
]
Expand Down
4 changes: 2 additions & 2 deletions generateDockerComposeYml.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
yaml_target_dir = os.path.dirname(os.path.abspath(__file__))

num_services = 2 # Total Services needed
base_port = 5000 # Start Port number
base_port = 80 # Start Port number


# Function to check if a port is available
Expand Down Expand Up @@ -53,7 +53,7 @@ def is_port_available(port):
"./forecast:${APP_PATH}/forecast/",
"./kpis:${APP_PATH}/kpis/",
],
"ports": [f"127.0.0.1:{port}:5000"],
"ports": [f"127.0.0.1:{port}:80"],
"networks": ["boptest-net"],
"restart": "on-failure" # restart on-failure
}
Expand Down

0 comments on commit 6eefb08

Please sign in to comment.