Ryan Albrecht
06/24/2024, 1:58 PMdougcain
06/24/2024, 4:53 PMFROM ortussolutions/commandbox:3.9.4
ENV BOX_SERVER_JVM_javaVersion=openjdk21_jdk
RUN box install commandbox-boxlang,bx-compat,bx-mariadb
RUN ${BUILD_DIR}/util/warmup-server.sh
Which runs ok but I see an error after the warmup.sh saying it canβt find the JDK:
/usr/local/bin/startup.sh: line 7: /usr/local/lib/CommandBox/serverJREs/openjdk21_jdk_aarch64_alpine-linux_hotspot_jdk-21.0.3+9/bin/java: No such file or directory
Running locally just with commandbox using server start cfengine=boxlang javaVersion=openjdk21_jdk
it all works as expected.
Am I missing something with the docker version of commandbox or doesnβt it like JDK21 for some reason?Bill Nourse
06/24/2024, 5:35 PMCharles Robertson
06/25/2024, 6:42 PMevent.setView()
to execute code in a view, but not display it.
So, essentially, use the view like an <cfinclude />
When I use event.noRender()
, it stops rendering of every view?
I will show you what I mean, in the reply...Patrick
06/27/2024, 3:18 PMJohn Liljegren
06/27/2024, 6:27 PMlmajano
06/28/2024, 11:10 AMajmercer
06/30/2024, 9:54 AMCFConfig
I would like to add a log file to existing server
I have tried
{
"loggers": {
"websocket": {
"appender": "resource",
"appenderArguments": {
"path": "{lucee-config}/logs/websocket.log"
},
"layout": "classic",
"level": "trace"
}
}
}
box cfconfig import CFConfig-websocket-log.json lucee6
where lucee6
is the name of the commandbox serverJohn Liljegren
07/01/2024, 9:14 PMevagoras
07/03/2024, 3:59 PMJim Priest
07/03/2024, 5:17 PMbox installs
our Docker build completes... I'm going to try and pin the cfconfig version and see if that works but just curious if anyone else has run into this?
Script:
#!/usr/bin/env bash
# Install command box and needed modules
# This will always install the latest CommandBox
curl -fsSl <https://downloads.ortussolutions.com/debs/gpg> | apt-key add -
echo "deb <https://downloads.ortussolutions.com/debs/noarch> /" | tee -a /etc/apt/sources.list.d/commandbox.list
apt-get update && apt-get install -yq apt-transport-https commandbox && rm -rf /var/lib/apt/lists/*
# Install cfconfig
box install commandbox-cfconfig
# Install testbox
cd /opt
box install testbox@5.3.1 --saveDev
cd -
Error:
#14 14.75 Libraries initialized
#14 33.85 ? | Installing package [forgebox:commandbox-cfconfig]
#14 39.90 #
#14 39.90 # A fatal error has been detected by the Java Runtime Environment:
#14 39.90 #
#14 39.90 # SIGSEGV (0xb) at pc=0x00007ffffeac32f2, pid=854, tid=880
#14 39.90 #
#14 39.90 # JRE version: Java(TM) SE Runtime Environment 18.9 (11.0.22+9) (build 11.0.22+9-LTS-219)
#14 39.90 # Java VM: Java HotSpot(TM) 64-Bit Server VM 18.9 (11.0.22+9-LTS-219, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
#14 39.90 # Problematic frame:
#14 39.90 # V [libjvm.so+0x7862f2] G1ParScanThreadState::copy_to_survivor_space(InCSetState, oopDesc*, markOopDesc*)+0x42
#14 39.91 #
#14 39.91 # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#14 39.91 #
#14 39.91 # An error report file with more information is saved as:
#14 39.91 # /opt/hs_err_pid854.log
#14 39.92 #
#14 39.92 # If you would like to submit a bug report, please visit:
#14 39.92 # <https://bugreport.java.com/bugreport/crash.jsp>
#14 39.92 #
#14 39.92 /tmp/commandbox_install.sh: line 16: 854 Aborted box install testbox@5.3.1 --saveDev
#14 ERROR: process "/bin/sh -c /tmp/commandbox_install.sh" did not complete successfully: exit
Patrick
07/05/2024, 6:59 PMmithlond
07/09/2024, 5:46 PMbdw429s
07/09/2024, 9:56 PMPatrick Roy
07/12/2024, 6:35 AMbox.exe task run taskFile=.....
with these components crashes because CLI doesn't seem to be on lucee version 6, and apparently latest Commandbox download isn't either...
Question: what is the best practice here to upgrade that ? Would anyone know of a good guide for this ? Much much thanks!
p.s.: currently running CommandBox 5.9.1+00767lmajano
07/12/2024, 11:27 AMlmajano
07/12/2024, 11:27 AMlmajano
07/12/2024, 11:28 AMRobert Zehnder
07/15/2024, 6:09 PMcfconfig set adminPassword=myPass
. When I load the admin it gives me the error "No access, password is invalid".lmajano
07/15/2024, 6:28 PMbx-oshi
!!
https://github.com/ortus-boxlang/bx-oshi
https://forgebox.io/view/bx-oshi
OSHI => Operating System and Hardware Info
I was finishing off the BIFS dealing with this, but wanted to take it to another level, especially since we want to also focus on Android and other devices later. Well, I have been using before a library called OSHI https://github.com/oshi/oshi?tab=readme-ov-file#documentation. Which gives you native access to anything in hardware.
Supported Features
β’ Computer System and firmware, baseboard
β’ Operating System and Version/Build
β’ Physical (core) and Logical (hyperthreaded) CPUs, processor groups, NUMA nodes
β’ System and per-processor load, usage tick counters, interrupts, uptime
β’ Process uptime, CPU, memory usage, user/group, command line args, thread details
β’ Physical and virtual memory used/available
β’ Mounted filesystems (type, usable and total space, options, reads and writes)
β’ Disk drives (model, serial, size, reads and writes) and partitions
β’ Network interfaces (IPs, bandwidth in/out), network parameters, TCP/UDP statistics
β’ Battery state (% capacity, time remaining, power usage stats)
β’ USB Devices
β’ Connected displays (with EDID info), graphics and audio cards
β’ Sensors (temperature, fan speeds, voltage) on some hardware
This gives us some pretty powerful native usage for the OS and it's peripherals. Great for the upcoming Android/iOS support libraries.lmajano
07/15/2024, 6:28 PMboxlang-templates
this week as well.
Feedback is very welcomed as always!bdw429s
07/17/2024, 12:00 AMtrue
for no real reason and enhanced our transpiler to still keep CF compat working as expected.
https://community.ortussolutions.com/t/finally-fixing-the-array-struct-bifs-that-return-true/10260/1bdw429s
07/17/2024, 12:02 AM[ "luis", "brad", "jon" ].map( ::uCase ) // [ "BRAD","LUIS","JON" ]
bdw429s
07/18/2024, 2:46 AM[ "brad", "luis", "jon" ].map( .toUpperCase ); // ["BRAD","LUIS","JON"]
More details in the write up and ticket:
https://community.ortussolutions.com/t/new-feature-functional-binding-to-member-methods/10263bdw429s
07/18/2024, 9:02 PMdenny
07/19/2024, 3:21 AMCharles Robertson
07/19/2024, 12:24 PMRodney
07/19/2024, 3:06 PMlmajano
07/19/2024, 6:57 PMbdw429s
07/20/2024, 8:43 PM