feat: Build minio image locally #322
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π Ticket
#315
β Description
Build minio locally and the backend uses it.
πΈ Test Result
POST
http://0.0.0.0:8080/jobsrequest body:
{ "name": "Bell State Sampling", "description": "Bell State Sampling Example", "device_id": "Kawasaki", "job_type": "sse", "job_info": { "program": [ "OPENQASM 3; qubit[2] q; bit[2] c; h q[0]; cnot q[0], q[1]; c = measure q;" ] }, "transpiler_info": {}, "simulator_info": { "n_qubits": 5, "n_nodes": 12, "n_per_node": 2, "seed_simulation": 39058567, "simulation_opt": { "optimization_method": "light", "optimization_block_size": 1, "optimization_swap_level": 1 } }, "mitigation_info": {}, "shots": 1000 }response:
{ "job_id": "06915b2d-0c12-7178-8000-be2b5e7228e1" }On minio Web GUI:

Note
On the other hand, I found some problems with calling
jobsAPI when I test minio.Compare username with email
On localhost, username (event.state.owner) will be set as "admin."
oqtopus-cloud/backend/oqtopus_cloud/user/middleware.py
Lines 24 to 36 in cd0b336
However, the comparison target is email.
oqtopus-cloud/backend/oqtopus_cloud/user/routers/jobs.py
Lines 661 to 662 in cd0b336
Therefore, admin is not allowed to use any devices.
For the test, I changed as below:
base64 encoding error with QASM
QASM string failed to decode with the following error:
oqtopus-cloud/backend/oqtopus_cloud/user/routers/jobs.py
Line 496 in cd0b336
I prevented this problem by changing the code as below: